Re: [R] group by rows

2016-03-09 Thread carol white via R-help
n text, and try to explain more clearly what you want the result to look like. Sarah On Wed, Mar 9, 2016 at 7:09 AM, carol white via R-help <r-help@r-project.org> 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 453

[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]]

[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]]

Re: [R] determine the year of a date

2016-02-03 Thread carol white via R-help
eed to convert the string to a time object > and 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/

[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,

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

2015-10-20 Thread carol white via R-help
uot;Must have an x value")  if(missing(y)) stop("Must have a y value") ...} Jim On Tue, Oct 20, 2015 at 7:32 AM, carol white via R-help <r-help@r-project.org> 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 v

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

2015-10-19 Thread carol white via R-help
On 19/10/2015 3:50 PM, carol white wrote: > Thanks Murdoch. > > defining > plot.func<- function(x=x.init, y=y.init, arg3, arg4, "title", col, arg5) > > and if plot doesn't take the exact parameters of plot.func but modified > of these parameters > plot(x=x.pt,

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

2015-10-19 Thread carol white via R-help
", 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 <murdoch.dun...@gmail.com> wrote: On 19/10/2015 1:29 PM, carol white via R-help wrote: > Hi,I have invo

[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 ...

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

2015-07-21 Thread carol white via R-help
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 r.tur...@auckland.ac.nz wrote: On 21/07/15 08:24, carol white

[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 drjimle...@gmail.com 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 r-help@r

[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] 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]

Re: [R] building a list in a loop

2015-06-05 Thread carol white via R-help
and the loop is executed 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 white [mailto:wht_

Re: [R] building a list in a loop

2015-06-05 Thread carol white via R-help
is executed 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 white [mailto:wht_

[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] 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 li...@dewey.myzen.co.uk wrote: On 01/06/2015 14:46, carol white via R-help wrote: Hi,By default

Re: [R] package.skeleton warning

2015-04-29 Thread carol white via R-help
  On Tuesday, April 28, 2015 5:22 PM, Duncan Murdoch murdoch.dun...@gmail.com 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, code_files = ) Error in sys.source(cf

[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 'zname.R' 2: In file.rename(from =

[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

Re: [R] package.skeleton warning

2015-04-28 Thread carol white via R-help
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 murdoch.dun...@gmail.com wrote: On 28/04/2015 10:05 AM, carol white via R-help wrote:   Hi,Why do I get this warning when I run

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 murdoch.dun...@gmail.com wrote: On 28/04/2015 8:54 AM, carol white via R-help wrote: Hi,How to cite reverse

[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

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

2015-04-28 Thread carol white via R-help
, 2015 7:37 PM, Duncan Murdoch murdoch.dun...@gmail.com 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

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

2015-04-28 Thread carol white via R-help
, 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 web page? I'm not talking about what is specified in  inst/citation. The package

[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

[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

[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

[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 Look

Re: [R] color palettes

2014-08-10 Thread carol white
. - David L Carlson Department of Anthropology Texas AM University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of carol white Sent: Friday, August 8, 2014 8:27 AM To: r-help

[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

[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],absdfds0213451ab,

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

2014-07-30 Thread carol white
, Marc Schwartz marc_schwa...@me.com wrote: On Jul 30, 2014, at 3:13 PM, carol white wht_...@yahoo.com 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] 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]]

[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 column of the

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

2014-07-23 Thread carol white
   c   c   c  V1 3   3   3   3  On Wednesday, July 23, 2014 10:06 PM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 23.07.2014 21:16, carol white wrote: Hi, I have a matrix of unique elements (strings) like v1 and a vector which contains replicated values of the 2nd column

[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

Re: [R] duplicated rows of a matrix

2014-07-21 Thread carol white
  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 wht_...@yahoo.com wrote: Hi, is it possible to find the duplicated rows of a matrix without a loop or i have to loop over

[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]]

[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:

[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

[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))    

[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 =

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, On

[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(m0, arr.ind=T) which gives the indices of

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

2014-06-19 Thread carol white
Kastermans kaste...@kasterma.net wrote: On 19 Jun 2014, at 13:19, carol white wht_...@yahoo.com 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

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

2014-06-19 Thread carol white
in any way I can think of. On 19 Jun 2014, at 15:04, carol white wht_...@yahoo.com wrote: well it gives a vector which is useless as I want a matrix. On Thursday, June 19, 2014 2:40 PM, Bart Kastermans kaste...@kasterma.net wrote: tm.1 - matrix(c(11,22,33,-4), ncol=2) which(tm.1 0

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

2014-06-19 Thread carol white
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 white Dato:19/06

[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 HTML

[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

[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

[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

Re: [R] R update problem

2013-05-15 Thread carol white
...@stat.math.ethz.ch r-h...@stat.math.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

[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 == nice. It

[R] Fw: rpart

2013-01-28 Thread carol white
Should I understand that this message was received? Thanks - Forwarded Message - From: carol white wht_...@yahoo.com To: r-h...@stat.math.ethz.ch 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

[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-31 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

[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

Re: [R] function for inverse normal transformation

2012-07-20 Thread carol white
-h...@stat.math.ethz.ch Sent: Friday, 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     [[alternative HTML version

Re: [R] function for inverse normal transformation

2012-07-20 Thread carol white
murdoch.dun...@gmail.com To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch 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

Re: [R] function for inverse normal transformation

2012-07-20 Thread carol white
) hist(tmp.qnorm) From: Rui Barradas ruipbarra...@sapo.pt To: carol white wht_...@yahoo.com Cc: r-help r-help@r-project.org Sent: Friday, July 20, 2012 2:02 PM Subject: Re: [R] function for inverse normal transformation Hello, No it's not correct, you

[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?

[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]] __

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 istaz...@gmail.com Cc:

[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]] __

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

[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 

[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

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 petr.pi...@precheza.cz Cc: r-h...@stat.math.ethz.ch r-h...@stat.math.ethz.ch Sent: Thursday, April 12, 2012 4:03 PM Subject: Re: [R] selective labels

[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

[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

[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] 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,

[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,

[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

[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

[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 wht_...@yahoo.com To: r-h...@stat.math.ethz.ch r-h...@stat.math.ethz.ch Cc: Sent: Wednesday, February 15, 2012 4:46 PM Subject: Error

[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] 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 pda...@gmail.com To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch r-h...@stat.math.ethz.ch Sent: Thursday, January 12, 2012 1:27 PM Subject: Re: [R] error message in R

[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

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 pda...@gmail.com To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch r-h...@stat.math.ethz.ch Sent

[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

[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

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 kevin.tho...@utoronto.ca To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch r-h...@stat.math.ethz.ch Sent: Thursday, August 25, 2011

Re: [R] X11 problem

2011-08-25 Thread carol white
. Thorpe kevin.tho...@utoronto.ca To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch 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

Re: [R] X11 problem

2011-08-25 Thread carol white
- Original Message - From: Alexander Engelhardt a...@chaotic-neutral.de To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch 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

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 (颜林林) yanlinli...@gmail.com To: carol white wht_...@yahoo.com Cc: r-h

Re: [R] X11 problem

2011-08-25 Thread carol white
To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch r-h...@stat.math.ethz.ch Sent: Thursday, August 25, 2011 4:08 PM Subject: Re: [R] X11 problem Sorry for the wrong package name. It should be: sudo apt-get install xorg-dev On Thu, 2011-08-25 at 06:51 -0700, carol white wrote: Thanks

[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

Re: [R] too many var in lm

2011-08-17 Thread carol white
- Original Message - From: Eik Vettorazzi e.vettora...@uke.uni-hamburg.de To: carol white wht_...@yahoo.com Cc: r-h...@stat.math.ethz.ch 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

[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

[R] Fw: questions about rpart - cont.

2011-05-25 Thread carol white
type of error? Is it possible to determine the true positive, false positive using rpart? Thanks - Forwarded Message From: carol white wht_...@yahoo.com 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

[R] Evaluation of variable assigned to a function name

2011-01-10 Thread carol white
Hi, I have defined a function (my.func) which is used as parameter (f) of another function. As I want to give the user the possibility to define his own function instead of my.func, how can I find out if in other functions, the parameter f has the my.func value (if the user has defined a new

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

2011-01-10 Thread carol white
by the user in an R session, it is then defined globally. In this case, does it need to be passed as a parameter? Note that my.func defined by me is loaded before. Carol - Original Message From: Uwe Ligges lig...@statistik.tu-dortmund.de To: carol white wht_...@yahoo.com Cc: r-h

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

2011-01-10 Thread carol white
calling my.func (x = 2 or a = 3,y=4,z=5)? How can my.func could be invoked in bar and v could be used? bar- function(x, ., foo){ if(missing(foo)) foo- Namespace::my.func . } - Original Message From: Uwe Ligges lig...@statistik.tu-dortmund.de To: carol white wht_

  1   2   >