[R] Fw: group by rows

2016-03-09 Thread carol white via R-help
I found the right usage. Thanks On Wednesday, March 9, 2016 2:28 PM, carol white wrote: What should be FUN in aggregate as no function like mean, sum etc will be applied Carol On Wednesday, March 9, 2016 1:59 PM, Sarah Goslee wrote: Possibly aggregate(), but you posted in

Re: [R] group by rows

2016-03-09 Thread carol white via R-help
clearly what you want the result to look like. Sarah On Wed, Mar 9, 2016 at 7:09 AM, carol white via R-help wrote: > How is it possible to group rows of a matrix or a data frame by the same > values of the first column? > 1 14331 453452 653 3762 45 > > 1 1433,453452 45, 653 376 >

[R] group by rows

2016-03-09 Thread carol white via R-help
How is it possible to group rows of a matrix or a data frame by the same values of the first column? 1 14331 453452 653 3762 45 1 1433,453452 45, 653 376 Thanks Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Change the location of R

2016-03-02 Thread carol white via R-help
Hi,I have R v 3.0 installed /usr/... and the new version R-3.2.3 in my home under ubuntu. Is it correct to copy the R-3.2.3 directory into /usr/local/lib/R/ or should I reconfig and remake into /usr/local/lib/R/? Regards, Carol [[alternative HTML version deleted]] __

Re: [R] determine the year of a date

2016-02-03 Thread carol white via R-help
the time object back to string. The format specifier %Y prints four-digit > years: > > > d <- "7/27/59" > strptime(d, format="%m/%d/%y")  # "2059-07-27 EDT" > x <- strptime(d, format="%m/%d/%y") > > strftime(x, format="%m/%d/

[R] determine the year of a date

2016-02-03 Thread carol white via R-help
Hi,might be trivial but how to determine the year of a date which is in the %m/%d/%y format and those whose year is century should be modified to ISO so that all date will have with year in ISO? Regards, Carol [[alternative HTML version deleted]]

[R] logical vector of the indices of a string in a vector

2016-01-24 Thread carol white via R-help
Hi, it might be trivial but is there any way to get the logical vector of the indices of a string in a vector? I thought that %in% would do but it doesn't. I also want to filter the empty fields. Here I want to extract the non-empty elements containing "Yes":x =c("Yes, fsd", "", "No","","Yes, fj

Re: [R] warning on generic function when building R package

2015-10-20 Thread carol white via R-help
)  if(missing(y)) stop("Must have a y value") ...} Jim On Tue, Oct 20, 2015 at 7:32 AM, carol white via R-help wrote: In effect, this works but whether I use x or x.init, y or y.init in plot.func, I get no visible binding for global variable ‘x.init’no visible binding for global vari

Re: [R] warning on generic function when building R package

2015-10-19 Thread carol white via R-help
can't skip the arg name                     col, arg5,                     ...)  {          # can't skip the dots Duncan Murdoch > > Regards, > > On Monday, October 19, 2015 7:45 PM, Duncan Murdoch > wrote: > > > On 19/10/2015 1:29 PM, carol white via R-help wrote: >

Re: [R] warning on generic function when building R package

2015-10-19 Thread carol white via R-help
;ylab", main = "title", col = col,type = "l") then, how to define and invoke to be consisent? Regards, On Monday, October 19, 2015 7:45 PM, Duncan Murdoch wrote: On 19/10/2015 1:29 PM, carol white via R-help wrote: > Hi,I have invoked plot in a function (plot.

[R] warning on generic function when building R package

2015-10-19 Thread carol white via R-help
Hi,I have invoked plot in a function (plot.func) as follows but when I check the built package, I get a warning: plot(x.pt,y.pt,xlim = c(0, 10), ylim = c(0,1), xlab= "xlab", ylab="ylab", main = "title", col = col,type = "l")  R CMD check my.package checking S3 generic/method consistency ... WARNI

Re: [R] [FORGED] change text size on a graphics

2015-07-21 Thread carol white via R-help
uot;cex" argument to the call. Using the first example in the help page: heights<-c(14,20,9,31,17) barpos<-barplot(heights,main="A redundant bar plot") barlabels(barpos,heights+1,prop=1,cex=1.5) Jim On Tue, Jul 21, 2015 at 7:23 AM, Rolf Turner wrote: > On 21/07/15 08:24, c

[R] change text size on a graphics

2015-07-20 Thread carol white via R-help
Hi,How is it possible to increase the size of a histogram labels (displayed on the top of the bars)? I thought that if I use cex > 1, it will increase all text size on a plot (axis labels, axis annotation, title of the graphics and histogram labels) which I want but it doesn't. Regards, Carol

Re: [R] load a very big .RData - error reading from connection

2015-06-09 Thread carol white via R-help
yes and doesn't help.600MB Thanks Carol On Tuesday, June 9, 2015 12:22 PM, Jim Lemon wrote: Hi carol, Have you tried renaming the file to something like "my.RData"? And just how big is it? Jim On Tue, Jun 9, 2015 at 5:50 AM, carol white via R-help wrote: > Hi,

[R] load a very big .RData - error reading from connection

2015-06-08 Thread carol white via R-help
Hi,How is it possible to load a very big .RData that can't be loaded it's very big and the following error msg is displayed load(".RData") Error: error reading from connection Thanks Carol   [[alternative HTML version deleted]] __ R-help@r-proj

Re: [R] building a list in a loop

2015-06-05 Thread carol white via R-help
twice. First with i equal to „a“ and second time with i equal to „b“.  In that case you need to have some objects which are named“a” or “b”  and you can use it for selection or computing d<-list(a=NULL, b=NULL)for (i in c("a","b")) {d[[i]]<-1:3} CheersPetr From: carol

Re: [R] building a list in a loop

2015-06-05 Thread carol white via R-help
uted twice. First with i equal to „a“ and second time with i equal to „b“.  In that case you need to have some objects which are named“a” or “b”  and you can use it for selection or computing d<-list(a=NULL, b=NULL)for (i in c("a","b")) {d[[i]]<-1:3} CheersPetr From: c

[R] building a list in a loop

2015-06-05 Thread carol white via R-help
It might be an easy question but how to construct correctly a list in a loop? The following doesn't work before starting the loopd = NULL#in the loop, 1st iteration d = list(d,c(1,2,3)d[[1]] NULL [[2]] [1] 1 2 3#in the loop, 2nd iterationd=list(d,c(4,5,6)d [[1]] [[1]][[1]] NULL [[1]][[2]] [1] 1

Re: [R] merge function

2015-06-01 Thread carol white via R-help
will have 3 col, namely col1, col2, col3 but all 5 col, i.e. col1, col2... col5 are taken if nothing is specified for the by arg. Cheers, On Monday, June 1, 2015 4:32 PM, Michael Dewey wrote: On 01/06/2015 14:46, carol white via R-help wrote: > Hi,By default the merge funct

[R] merge function

2015-06-01 Thread carol white via R-help
Hi,By default the merge function should take the intersection of column names (if this is understood from by = intersect(names(x), names(y)), but it takes all columns. How to specify the intersection of column names?  Thanks Carol [[alternative HTML version deleted]] ___

Re: [R] package.skeleton warning

2015-04-29 Thread carol white via R-help
cess separately? Thanks   On Tuesday, April 28, 2015 5:22 PM, Duncan Murdoch wrote: On 28/04/2015 11:09 AM, carol white wrote: > I have many code files so listing them will be long. When leave it > empty, I get > > package.skeleton(name = "myPackage", cod

Re: [R] cite publications in the package help file

2015-04-28 Thread carol white via R-help
an example of a package main web page on CRANhttp://cran.r-project.org/web/packages/A3/index.html and the help pdf filehttp://cran.r-project.org/web/packages/A3/A3.pdf Regards, On Tuesday, April 28, 2015 7:37 PM, Duncan Murdoch wrote: On 28/04/2015 1:00 PM, carol white via R-help

Re: [R] cite publications in the package help file

2015-04-28 Thread carol white via R-help
, 2015 7:37 PM, Duncan Murdoch wrote: On 28/04/2015 1:00 PM, carol white via R-help wrote: > To cite related publications, it seems that they can't be mentioned in  > DESCRIPTION. Where to mention so that it appears on the 1st page of  the pdf > help file and the package main

Re: [R] reverse dep of a package

2015-04-28 Thread carol white via R-help
yes, reverse dependency. All the reverse dependancies on the main web page of the packages are generated by CRAN? Thanks On Tuesday, April 28, 2015 5:02 PM, Duncan Murdoch wrote: On 28/04/2015 8:54 AM, carol white via R-help wrote: > Hi,How to cite reverse dependancies in

[R] cite publications in the package help file

2015-04-28 Thread carol white via R-help
To cite related publications, it seems that they can't be mentioned in  DESCRIPTION. Where to mention so that it appears on the 1st page of  the pdf help file and the package main web page? I'm not talking about what is specified in  inst/citation.  Thanks, Carol [[alternative HTML ve

Re: [R] package.skeleton warning

2015-04-28 Thread carol white via R-help
instead of listing them. Even if I upload and have them as R objects, I shouldn't have to list them in the list arg. Thanks On Tuesday, April 28, 2015 4:48 PM, Duncan Murdoch wrote: On 28/04/2015 10:05 AM, carol white via R-help wrote: >  Hi,Why do I get this warning wh

[R] reverse dep of a package

2015-04-28 Thread carol white via R-help
Hi,How to cite reverse dependancies in the NAMESPACE file in building a package? Regards, Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-he

[R] package.skeleton warning

2015-04-28 Thread carol white via R-help
Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1: In package.skeleton(name = "myPackage", code_files = "~/Desktop/myPkg/R/") :   Invalid file name(s) for R code in ./myPackage/R:   'R'  are now renamed to 'z.R' 2: In file.rename(from =

[R] view large tables

2015-02-17 Thread carol white via R-help
what is the best function to view large tables or data frames, scrolling down-up, left-right? Thanks c. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

[R] ubuntu 14.04

2014-09-24 Thread carol white
Hi, Can R be run on ubuntu 14.04 LTS without problem or is there any incompatibility? Thanks Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

[R] division of col by the sum of the col

2014-09-23 Thread carol white
Hi, If I want to divide the column of a matrix by the sum of the column, should I loop over the columns or can I use apply family? Regards, Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] extract GO results in xml format

2014-09-02 Thread carol white
from a list of GO term enrichment results in xml format, what is the best way to extract term and p-value columns? Which function is the best to use? I used xmlToDataFrame but got Error in `[<-.data.frame`(`*tmp*`, i, names(nodes[[i]]), value = c("5", : duplicate subscripts for columns Lo

Re: [R] color palettes

2014-08-10 Thread carol white
al packages for creating color palettes including RColorBrewer, colortools, colorspace, and munsell. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun..

[R] color palettes

2014-08-08 Thread carol white
Hi, Is there any way to take one color of each color family from a color palettes like rainbow? For ex, if there are different blues differentiated by intensity, hue etc, taking one of them. In this case, when using rainbow(n), then how to select 1 color of each family, for ex 1 blue, 1 red etc?

Re: [R] separate numbers from chars in a string

2014-07-30 Thread carol white
, Marc Schwartz wrote: On Jul 30, 2014, at 3:13 PM, carol white wrote: > Hi, > If I have a string of consecutive chars followed by consecutive numbers and > then chars, like "absdfds0213451ab", how to separate the consecutive chars > from consecutive numbers? >

[R] separate numbers from chars in a string

2014-07-30 Thread carol white
Hi, If I have a string of consecutive chars followed by consecutive numbers and then chars, like "absdfds0213451ab", how to separate the consecutive chars from consecutive numbers? grep doesn't seem to be helpful grep("[a-z]","absdfds0213451ab", ignore.case=T) [1] 1  grep("[0-9]","absdfds0213

[R] selection of probes, probesets mapping to the same gene

2014-07-26 Thread carol white
Hi, Apart from genefilter, is there any other packages that find all probes, probesets mappign to the same gene and then, select the one based on criterion for ex largest value of the test statistic? Look forward to your reply, Carol [[alternative HTML version deleted]] ___

Re: [R] corresponding replicated el of one matrix in another matrix or vector

2014-07-23 Thread carol white
    [,15] [,16] [,17] [,18] [1,] "c"   "b"   "b"   "b"  [2,] "3"   "2"   "2"   "2"  instead of t(merge(data.frame(V2=v2), as.data.frame(v1)))    [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,

[R] corresponding replicated el of one matrix in another matrix or vector

2014-07-23 Thread carol white
Hi, I have a matrix of unique elements (strings) like v1 and a vector which contains replicated values of the 2nd column of the first matrix. v1 = cbind(c("1","2","3"),c("a","b","c")) v2 = c(rep("a",5), rep("c",10), rep("b",3)) How can I add a column to v2 that contains the values of the first

[R] odd, even indices of a vector

2014-07-21 Thread carol white
Might be a trivial question but how to identify the odd and even indices of a vector? x = c(1,z,w,2,6,7) el of odd indices= 1,w,6 el of even indices= z,2,7 given the def of odd and even in https://stat.ethz.ch/pipermail/r-help/2010-July/244299.html should a loop be used? for (i in 1: length(

[R] 1st el of a list of vectors

2014-07-21 Thread carol white
Hi, If we have a list of vectors of different lengths, how is it possible to retrieve the first element of the vectors of the list? l = list(c(1,2), c(3,5,6), c(7)) 1,3,7 should be retrieved Thanks Carol [[alternative HTML version deleted]] __

Re: [R] duplicated rows of a matrix

2014-07-21 Thread carol white
RUE FALSE FALSE  TRUE > m[duplicated(m), ]   [,1] [,2] d    2  13 e    3  11 h    1  11 Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Jul 21, 2014 at 7:54 AM, carol white wrote: > Hi, > is it possible to find the duplicated rows of a matrix without a loop or i > have to l

[R] duplicated rows of a matrix

2014-07-21 Thread carol white
Hi, is it possible to find the duplicated rows of a matrix without a loop or i have to loop over the rows? duplicated doesn't seem to be helpful Thanks Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] writing matrices of different rows in a file

2014-07-07 Thread carol white
Hi, What is the best way of writing of matrices of different rows in a file? Should the matrices with the same number of rows be written first and then, empty columns for the matrices with a smaller number of rows followed by the matrices with a larger number of rows? Not a good solution (see be

[R] access an element of a list without looping

2014-07-03 Thread carol white
Hi, Is there any way to access an element of a list without looping over the list nor using unlist? Just to avoid parsing a very long list. For ex, how to find a vector of a length 2 in a list without using a loop? l = list (c(1), c(2,3), c(1,2,3)) for (i in 1:length(l))     if(length(l[[i]]==2

Re: [R] read a file of text with read.table

2014-06-26 Thread carol white
Hi, with read.fwf, it works. But I still don't understand why it doesn't work with read.table since the sep by default is "", which is the case and in one trial, I used  read.table("myfile",colClasses = "character", stringsAsFactors=FALSE, and stil didn't work but it should have. Regards,

[R] read a file of text with read.table

2014-06-26 Thread carol white
It might be a primitive question but I have a file of text and there is no separator between character on each line and the strings on each line have the same length. The format is like the following absfjdslf jfdldskjff jfsldfjslk When I read the file with read.table("myfile",colClasses = "cha

Re: [R] extract a subset of non-contiguous elements of a matrix

2014-06-19 Thread carol white
probably have to be a matrix of characters. There you go from a 3×4 matrix to a 3×2 matrix.  What do you want in case of Barts 2×2 matrix? A 3×1 or 1×3 matrix? And in a more general case? Best regards Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: carol whit

Re: [R] extract a subset of non-contiguous elements of a matrix

2014-06-19 Thread carol white
think of. On 19 Jun 2014, at 15:04, carol white wrote: > well it gives a vector which is useless as I want a matrix. > > > On Thursday, June 19, 2014 2:40 PM, Bart Kastermans > wrote: > > > > tm.1 <- matrix(c(11,22,33,-4), ncol=2) > > which(tm.1 >

Re: [R] extract a subset of non-contiguous elements of a matrix

2014-06-19 Thread carol white
9 PM, Bart Kastermans wrote: On 19 Jun 2014, at 13:19, carol white wrote: > Hi, > Is there a way to extract a subset of non-contiguous elements of a matrix > elegantly and with 1 or very few scripts? > > Suppose I have a matrix of positive and negative numbers (m) and I wan

[R] extract a subset of non-contiguous elements of a matrix

2014-06-19 Thread carol white
Hi, Is there a way to extract a subset of non-contiguous elements of a matrix elegantly and with 1 or very few scripts? Suppose I have a matrix of positive and negative numbers (m) and I want to retrieve only the positive number. This I can do which(m>0, arr.ind=T) which gives the indices of po

[R] title size problem

2014-06-18 Thread carol white
Hi, When I use any value greater than 2 for cex.main in title, I get  title("myTitle", cex.main= 5) Error in title("myTitle", cex.main = 5) :   X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 2 at size 60 could not be loaded How to fix it? Thanks Carol [[alternative HTM

[R] find an empty char in the name of a vector

2014-05-15 Thread carol white
Hi, I have a vector with the name of an element that is empty. How can I find out the index of this element? The following doesn't work: empty.char = grep('[:blank:||:space:]' ,names(v)) if (length(empty.char)>0)     How about if the name of one element is g_ and the name of other elements

[R] matrix column division by vector

2014-05-14 Thread carol white
Hi, What is the elegant script to divide the columns of a matrix by the respective position of a vector elements? m=rbind(c(6,4,2),c(3,2,1)) v= c(3,2,1) res= 6/3   4/2  2/1     3/3   2/2    1/1 this is correct  mat2 = NULL for (i in 1: ncol(m))     mat2 = cbind(mat2, m[,i]/ v[i]) but

[R] position of a string in a data frame

2014-04-30 Thread carol white
Hi, It might be a primitive question but how to find the position of a string in a data frame? Suppose I search the word "sum" (case insensitive) in a data frame and it is in the 7th row, 3rd column, how to retrieve the indices 7, 3? I tried to use grep with tapply but it doesn't work. Many tha

[R] interaction.plot for continuous variables

2014-02-16 Thread carol white
Hi, Since factor variables should be used with interaction.plot, which function can be used to illustrate interactions between continuous variables? Regards, Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] R update problem

2013-05-15 Thread carol white
ethz.ch" Sent: Wednesday, May 15, 2013 5:35 PM Subject: Re: [R] R update problem On Wed, May 15, 2013 at 07:59:32AM -0700, carol white wrote: > Hi, > I try to update R on Ubuntu > > I added deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/ in > /etc/apt/sources.list but

[R] R update problem

2013-05-15 Thread carol white
Hi, I try to update R on Ubuntu I added deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu precise/ in /etc/apt/sources.list but any mirror site that I take, I get the following error msg: W: GPG error: http://cran.cnr.Berkeley.edu precise/ Release: The following signatures couldn't be verified

[R] boxplot

2013-03-21 Thread carol white
Hi, It must be an easy question but how to boxplot a subset of data: data = read.table("my_data.txt", header = T) boxplot(data$var1[data$loc == "nice"]~data$loc_type[data$loc == "nice"]) #in this case, i want to display only the boxplot loc == "nice" #doesn't display the boxplot of only loc == "ni

[R] Fw: rpart

2013-01-28 Thread carol white
Should I understand that this message was received? Thanks - Forwarded Message - From: carol white To: "r-h...@stat.math.ethz.ch" Sent: Sunday, January 27, 2013 8:31 PM Subject: rpart Hi, When I look at the summary of an rpart object run on my data, I get 7 nodes but w

[R] rpart

2013-01-27 Thread carol white
Hi, When I look at the summary of an rpart object run on my data, I get 7 nodes but when I plot the rpart object, I get only 3 nodes. Should the number of nodes not match in the results of the 2 functions (summary and plot) or it is not always the same? Look forward to your reply, Carol --

[R] reviews for quality control

2012-08-30 Thread carol white
Hi, It might be a trivial question but I just wonder if you could advise good theoretical tutorials, reviews on NGS (different platforms) quality control like nucleotides quality by cycle, nucleotides frequency by cycle, GC content and distribution, K-mer frequency by cycle as well as quality c

Re: [R] function for inverse normal transformation

2012-07-20 Thread carol white
ist(tmp) > hist(tmp.p) > hist(tmp.qnorm) From: Rui Barradas To: carol white Cc: r-help Sent: Friday, July 20, 2012 2:02 PM Subject: Re: [R] function for inverse normal transformation Hello, No it's not correct, you are computing a what se

Re: [R] function for inverse normal transformation

2012-07-20 Thread carol white
To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Friday, July 20, 2012 1:42 PM Subject: Re: [R] function for inverse normal transformation On 12-07-20 7:36 AM, carol white wrote: > Thanks for your reply. > > So to derive it from a given data set, is the foll

Re: [R] function for inverse normal transformation

2012-07-20 Thread carol white
y, July 20, 2012 1:23 PM Subject: Re: [R] function for inverse normal transformation On 12-07-20 6:21 AM, carol white wrote: > Hi, > What is the function for inverse normal transformation? qnorm Duncan Murdoch > Thanks, > > Carol > >     [[a

[R] function for inverse normal transformation

2012-07-20 Thread carol white
Hi, What is the function for inverse normal transformation? Thanks, Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proj

[R] prcomp

2012-06-21 Thread carol white
Hi, If center=T (by default) in invoking prcomp, that is, prcomp (x) where x is a matrix with the observations are in rows and the variables are in column, is this equivalent to scale(t(x),center=T,scale=F) where x is a matrix with the observations are in rows and the variables are in columns?

Re: [R] all occurences of an element in a vector

2012-05-21 Thread carol white
like searching m or [m,n] in [1,n,m,e,m,n,n,u]. I want the exact match of all occurrences of m and n in the last vector. Therefore, grep is not helpful as it will extract if there are also mm and mmm. Cheers, Carol From: Ista Zahn Cc: "r-h...@stat.math.ethz

[R] all occurences of an element in a vector

2012-05-21 Thread carol white
Hi, How do you identify all occurences of an element or a sub-vector in a vector as opposed to match, %in%, and intersect which find the first occurrence of an element? Cheers, Carol [[alternative HTML version deleted]] __ R-help@r-project.o

Re: [R] labels in hist and ranges of an axis

2012-05-14 Thread carol white
Thanks Gerrit. cex.axis changes the size of the axis label. I want to change the size of data labels that are displayed at the top of the bars in the histogram. What we obtain by histogram(...,labels=T) Any clue? Cheers, From: Gerrit Eichner Cc: "r-h...@st

[R] labels in hist and ranges of an axis

2012-05-14 Thread carol white
Hi, How is it possible to change the character size of labels in a histogram (labels parameter in hist)? How is it possible to display the ranges of an axis in 3 significant digits? Thanks  Carol [[alternative HTML version deleted]] __ R-help

[R] storage of matrices of diff dimension together

2012-05-10 Thread carol white
Hi, It might be a trivial question but how do you store matrices of different dimensions read from a file or in a loop together? The best solution might be a list but I don't store the first matrix  correctly:  m = rbind(c(1,2),c(3,4),c(5,6)) t=rbind(c(1,2),c(5,6))  l = list(m) > l = list(l,t)

[R] warning with glm.predict, wrong number of data rows

2012-05-03 Thread carol white
Hi, I split a data set into two partitions (80 and 42), use the first as the training set in glm and the second as testing set in glm predict. But when I call glm.predict, I get the warning message:  Warning message: 'newdata' had 42 rows but variable(s) found have 80 rows  -

Re: [R] selective labels display on histogram

2012-04-12 Thread carol white
No, data labels on the histogram bars. labels = T in hist displays all data labels. thanks From: Petr PIKAL Cc: "r-h...@stat.math.ethz.ch" Sent: Thursday, April 12, 2012 4:03 PM Subject: Re: [R] selective labels display on histogram Hi > > Hello, > Is i

[R] selective labels display on histogram

2012-04-12 Thread carol white
Hello, Is it possible to selectively display labels on a histogram? Thanks Carol [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www

[R] X11 display problem

2012-04-10 Thread carol white
Hi, I run R on a unix server and login from a Mac with ssh -X. When I want to run a graphics function like hist, I get the following x11 message: Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype,   :    unable to start device X11cairo In addition: Warning message: In f

[R] sdev, variance in prcomp

2012-04-09 Thread carol white
Hello, It might be a trivial question but I just wanted to find out the relationship between sdev and proportion of variance generated by prcomp. I got the following result from my data set PC1  PC2  PC3 Standard deviation 104.89454 15.40910 9.012047 Prop

[R] sort dates

2012-03-09 Thread carol white
Hello, How is it possible to sort dates in R? Cheers, Carol __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, s

[R] time between two dates

2012-03-09 Thread carol white
Dear All, It may be a trivial question but how to determine the number of days between two dates? What I want to do is to subtract two dates by a function which returns the number of days between these two dates.  11.11.2008-11.11.2006 ~= 730 days Look forward to your reply, Carol ___

[R] breaks display of hist

2012-02-21 Thread carol white
Hello, How can I display the xlim of the boundaries of all or specific breaks in a histogram? I generated the attached plot with hist and would like to know which values of x correspond to the frequency 329 and display these values on the x axis? Best, carol

[R] Fw: Error in rep.int(boxwex, n) : negative length vectors are not allowed-cont.

2012-02-15 Thread carol white
Sorry for the error: the first column is of the string type and the second column of float, respectively. - Forwarded Message - From: carol white To: "r-h...@stat.math.ethz.ch" Cc: Sent: Wednesday, February 15, 2012 4:46 PM Subject: Error in rep.int(boxwex, n) : negat

[R] Error in rep.int(boxwex, n) : negative length vectors are not allowed

2012-02-15 Thread carol white
Dear All, I tried to invoke plot for a matrix of 196475 x2 dimension. I loaded the data with read.table. On one dimension, there are strings (names) and on the other dimension, the floats between 0 and 1. When I invoked plot by setting x to names and y to floats and ylim = c(0,1), I got the foll

[R] X11 fonts problems

2012-02-15 Thread carol white
Hello, I installed R--2-1.14.1.pkg on mac OS v 10.7.2 and when I wanted to invoke hist, I got the following error msg: Error in title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...) :    could not find any X11 fonts Check that the Font Path is correct. In addition: Warning messages: 1: In

Re: [R] error message in R 2.1.14 installation

2012-01-12 Thread carol white
The OS is fedora 10. It's also a 32-bit architecture. Best, - Original Message - From: peter dalgaard To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Thursday, January 12, 2012 1:27 PM Subject: Re: [R] error message in R 2.1.14 installation On Jan 12, 2012, a

[R] error message in R 2.1.14 installation

2012-01-12 Thread carol white
Hi, I tried to install R.2.14.1 but when running ./configure command, I got the following error message configure: error: --with-readline=yes (default) and headers/libs are not available All checking prior to this error message passed without any problem (see below). Cheers, Carol

Re: [R] unset proxy in R

2011-10-31 Thread carol white
My apologies for having interfered with an existing thread. Any other proposition to unset the proxy in R is welcome. Cheers, Carol - Original Message - From: peter dalgaard To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Monday, October 31, 2011 1:44 PM Subje

[R] unset proxy in R

2011-10-31 Thread carol white
Hello, Is Sys.unsetenv the right function to unset the proxy in R? Cheers, Carol __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provi

[R] Packages for snp, CNV data

2011-09-26 Thread carol white
Hi, In addition to GADA, what are the available package in R and bioconductor to analyze amplification, deletion, LOH and indels of CNV, SNP data? Any reference is welcome. Best, Carol __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] X11 problem

2011-08-25 Thread carol white
configure: WARNING: you cannot build PDF versions of the R manuals configure: WARNING: you cannot build PDF versions of all the help pages The 2.13.1 version is installed but likely I will have probelm with manuals. Cheers, - Original Message - From: Linlin Yan (颜林林) To: carol white Cc

Re: [R] X11 problem

2011-08-25 Thread carol white
Thanks I ran your command but still get the same error message when I run ./configure configure: error: --with-x=yes (default) and X11 headers/libs are not available - Original Message - From: Linlin Yan (颜林林) To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Thursd

Re: [R] X11 problem

2011-08-25 Thread carol white
Carol - Original Message - From: Alexander Engelhardt To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Thursday, August 25, 2011 3:31 PM Subject: Re: [R] X11 problem Am 25.08.2011 15:05, schrieb carol white: > both. But it worked for R-2-10. > > I added > > deb http://cr

Re: [R] X11 problem

2011-08-25 Thread carol white
m: Kevin E. Thorpe To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Thursday, August 25, 2011 3:00 PM Subject: Re: [R] X11 problem On 08/25/2011 08:49 AM, carol white wrote: > Thanks for your reply. I used the following commands: > sudo apt-get update > sudo apt-get inst

Re: [R] X11 problem

2011-08-25 Thread carol white
Thanks for your reply. I used the following commands: sudo apt-get update sudo apt-get install r-base - Original Message - From: Kevin E. Thorpe To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Thursday, August 25, 2011 2:34 PM Subject: Re: [R] X11 problem On 08/25/201

[R] X11 problem

2011-08-25 Thread carol white
Hello, TO update R under Ubuntu on my macchine, I downloaded R-2.13.1. When running ./configure, I got the following error message: checking for X... no configure: error: --with-x=yes (default) and X11 headers/libs are not available But I could use X11() function in R-2-10. So where does the p

Re: [R] too many var in lm

2011-08-17 Thread carol white
- Original Message - From: Eik Vettorazzi To: carol white Cc: "r-h...@stat.math.ethz.ch" Sent: Wednesday, August 17, 2011 3:39 PM Subject: Re: [R] too many var in lm Hi Carol, it might be another question if it is sensible to use 2100 regression parameters, but you can use .

[R] too many var in lm

2011-08-17 Thread carol white
Hello, It might be an easy question but if you have many variables to fit in the lm function, how do you take all without specifying var1+var2+...+var2100 in the terms parameter in response ~ terms? Cheers, Carol __ R-help@r-project.org mailing list

[R] Fw: questions about rpart - cont.

2011-05-25 Thread carol white
or another type of error? Is it possible to determine the true positive, false positive using rpart? Thanks - Forwarded Message ---- From: carol white To: r-h...@stat.math.ethz.ch Sent: Wed, May 25, 2011 9:06:15 AM Subject: questions about rpart Hi, I have applied rpart to my data set and

[R] questions about rpart

2011-05-25 Thread carol white
Hi, I have applied rpart to my data set and for cp=.01, the cross-validation error (xerr) is less (min 0.05) than for other cp. However, in the final tree, an important predictor is not retained. Moreover, another predictor contains missing values in 40% of samples. So I don't know if the import

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
ssage From: Uwe Ligges To: carol white Cc: r-h...@stat.math.ethz.ch Sent: Mon, January 10, 2011 7:14:00 PM Subject: Re: [R] Evaluation of variable assigned to a function name On 10.01.2011 18:24, carol white wrote: > If it doesn't make sense, how to invoke in the bar function,

Re: [R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
If it doesn't make sense, how to invoke in the bar function, my.func with specified parameters with known values and how to invoke my.func.user if the user defines his own function (without specifying the parameters)? - Original Message From: Uwe Ligges To: carol white Cc

  1   2   >