Displaying 20 results from an estimated 2000 matches similar to: "Plot duplicate csv columns"
2011 Aug 15
3
Plot from function
*I have the following function:*
/plot_mi_time = function(mdata, miname) {
mdata2 = mdata[row.names(hakat) == miname, ]
print(mdata2)
xcoords <- c(1,1,2,2,3,3,4,4,5,5,6,6)
plot(c(xcoords), mdata2, xaxt="n", ylab="Expression", xlab="Time(h)", ,
main=miname)
axis(1, at=xcoords,
2011 Jun 01
2
re-write plot function for ggplot
Hi, I have the following function that i use to plot graphs.
plot_mi_time = function(mdata, miname) {
mdata2 = mdata[row.names(mir_test3) == miname, ]
# print(mdata2)
xcoords <- c(1,1,2,2,3,3)
plot(xcoords, mdata2, xaxt="n", ylab="Expression", xlab="Time(h)", ,
main=miname)
axis(1, at=xcoords,
2005 Mar 18
2
logistic model cross validation resolved
This post is NOT a question, but an answer. For readers please disregard all earlier posts by myself about this question.
I'm posting for two reasons. First to say thanks, especially to Dimitris, for suggesting the use of errorest in the ipred library. Second, so that the solution to this problem is in the archives in case it gets asked again.
If one wants to run a k-fold cross-validation
2004 Mar 23
1
nlme question
I have a need to call and pass arguments to nlme() from within another
function. I use R version 1.8.
I have found an apparent way to make this work, but I would appreciate
some comments on whether this fix is really appropriate, or there is
another way to do it that does not involve changing the source code. I
don't have enough experience to start changing the sorurce code of a
library
2013 Feb 27
1
metafor - interpretion of QM in mixed-effects model with factor moderator
Hi,
I'm using metafor to perform a mixed-effects meta-analysis. I'd like to
test whether the effect is different for animals and plants/whether "group"
(animal/plant) influences the effect size, but am having trouble
interpreting the results I get. I've read previous posts about QM in
metafor, but I'm still a bit confused. I've dummy-coded the factors:
2005 Mar 17
1
Cross validation, one more time (hopefully the last)
I apologize for posting on this question again, but unfortunately, I don't have and can't get access to MASS for at least three weeks. I have found some code on the web however which implements the prediction error algorithm in cv.glm.
http://www.bioconductor.org/workshops/NGFN03/modelsel-exercise.pdf
Now I've tried to adapt it to my purposes, but since I'm not deeply familiar
2010 Aug 13
1
mlogit error
Hi,
I'm trying to fit a multinomial logistic regression to my data which
consists of 5 discrete variables (scales 1:10) and 1000 observations.
I get the following error:
Error in `row.names<-.data.frame`(`*tmp*`, value = c("NA.NA", "NA.NA", :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting
2012 Jun 27
0
ggplot2 ordering in a faceted dotplot.
am trying to produce two dot plot figures in ggplot2. So far the first one (p) in the program below is working fine.
However when I want to move to a faceted plot (p1) I seem to lose my ordering or, more likely, I'm just getting an ordering I am not expecting and I always have trouble understanding ordering in R!
What I would like is the 2011 panel to be ordered in descending order as is
2009 Mar 08
3
xyplot() - can you control how the plots are ordered?
Hi,
I want to control the plots in the output of the xyplot(). It is
easier to explain it through an example:
#-------------------------------------------------------------
library(lattice);
# months
months <- c("Jan", "Feb", "Mar",
"Apr", "May", "Jun",
"Jul", "Aug", "Sep",
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
Hi everyone,
I'm trying to encode/decode with speex, when I do not, the audio is loud and clear, but when I encode/decode to test audio quality, I get a really poor audio quality and a robotic sound.
Here's my init audio method :
#define AUDIO_QUALITY 10
- (void) initAudio {
try {
//SPEEX CONFIG
speex_bits_init(&bits_in);
2024 Jun 26
1
Confusion supreme
Hello all
I have a mail store on a volume replica 3 with no arbiter. A while
ago the disk of one of the bricks failed and I was several days
late to notice it. When I did, I removed that brick from the volume,
replaced the failed disk, updated the OS on that machine from el8
to el9 and gluster on all three nodes from 10.3 to 11.1, added back
the brick and started a heal. Things appeared to work
2012 Jun 05
0
propensity score matching estimates?
I'm using the "Match" package to do propensity score matching. Here's some
example code that shows the problem that I'm having (much of this code is
taken from the Match package documentation):
*data(lalonde)
glm1 <- glm(treat~age + I(age^2) + educ + I(educ^2) + black +
hisp + married + nodegr + re74 + I(re74^2) + re75 + I(re75^2)
+
u74 + u75,
2023 Nov 06
1
strange link files
Dear all,
I recently upgraded my clients to 10.4, while I left the servers (distrubuted only) on glusterfs 9.
I'm seeing a strange effect when I do a "mv filename1 filename2":
filename2 is uplicated, one time with zero size and sticky bit set.
In generally, I know that glusterfs creates link files (size zero and sticky bit set) when the new filename is hashed to a different
2001 Mar 27
1
Problem with a share
Hello Samba friends,
sometimes i have this messages in my Samba Log (2.06).
Then, i have a problem to connect me to the share.
Can anyone tell me what the problem is ?
305513 (193.101.245.125) couldn't find service d3n
[2001/03/16 12:47:17, 0] lib/util_sock.c:(474)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2001/03/16 12:51:54, 0] smbd/service.c:(209)
2005 Sep 05
0
Dovecot-LDA: Development questions
Hello,
I'm tinkering with Dovecot-LDA in order to achieve:
+ Better intergration into sendmail, and
+ tweaking its way to act on errors.
Attached patch is a "brainstorming" like suggestion:
a) when sendmail is dropping a message, it spawns the LDA, captures
stderr/stdout and, if the LDA returns an exit code != 0, generates either
a DSN or, when EX_TEMPFAIL, queues the mail.
2011 Oct 06
3
Wide to long form conversion
I have some data 'myData' in wide form (attached at the end), and
would like to convert it to long form. I wish to have five variables
in the result:
1) Subj: factor
2) Group: between-subjects factor (2 levels: s / w)
3) Reference: within-subject factor (2 levels: Me / She)
4) F: within-subject factor (2 levels: F1 / F2)
5) J: within-subject factor (2 levels: J1 / J2)
As this is the
2010 Jan 28
2
NA Replacement by lowest value?
Hi all,
I need to replace missing values in a matrix by 10 % of the lowest available value in the matrix. I've got a function I've used earlier to replace negative values by the lowest value, in a data frame, but I'm not sure how to modify it...
nonNeg = as.data.frame(apply(orig.df, 2, function(col) # Change negative values to a small value, close to zero
{
min.val =
2011 Dec 07
1
import a dataset from Access database into R
Hi
I was trying to import a dataset from access database
into R
My code looks like below
>library(RODBC)
>setwd("//STATESFPSOP1/docs/CRMPO/DEPT/Retail
PD")
>channel<-odbcConnectAccess("MortgagePD.mdb")
>Mdata<-sqlFetch(channel, "MortgagePD")
But I got error messages saying
Error: cannot allocate vector of
size 27.9 Mb
In addition: Warning
2009 Aug 20
1
Read and merge a number of .xls files into one dataframe
Hi everybody
I have a large number of Excel speadsheets that I want to merge into one R
dataframe to process. I can read them one by one with read.xls but I really
need a function to read a whole directory at once and merge the columns with
the same name into a single dataframe.
here is what I have thus far (on Mac OS X 10.5.2. for R 2.8.0):
# Define the directory where the data is
2012 May 12
2
ggplot simple question.
I have a matrix like this
Name 1 2
3 4 5
NM_001039514 1.033557047 0.7469879518 0.9004524887 0.8613861386 0.7952499048
NM_001039723 1.0759493671 1.2315789474 0.8666666667 1.1142857143
0.9428011471
NM_001042605 0.9897435897 0.8870431894