Re: [R] help: Using hotelling for a confidence region for PCA scores

2011-05-16 Thread Greg Hirson
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 [[alternative HTML version deleted

[R] period in scale parameter of prcomp

2011-05-13 Thread Greg Hirson
-- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] period in scale parameter of prcomp

2011-05-13 Thread Greg Hirson
Bill, Thanks. So it is as we suspected. Kind regards, Greg On 5/13/11 11:19 AM, William Dunlap wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Greg Hirson Sent: Friday, May 13, 2011 10:58 AM To: R-help@r-project.org

[R] combn with factors

2010-04-07 Thread Greg Hirson
. In any event, I think it could be consistent - either labels or values. Is there reason to expect the second case to return the value it did? This occurs in R 2.10.1 Thanks, Greg -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi

Re: [R] combn with factors

2010-04-07 Thread Greg Hirson
Peter, Thank you. I'll be sure to include a as.character. Greg On 4/7/10 11:40 AM, Peter Ehlers wrote: On 2010-04-07 11:40, Greg Hirson wrote: Dear list, I have come across this issue: combn(letters[1:5], 3) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] a a a a a a b b b c [2

Re: [R] can I rotate a matrix

2010-03-18 Thread Greg Hirson
] [,3] [,1] 43 1 [,2] 52 2 [,3] 36 1 Does anyone know a quick and straightforward way to do this? Thanks in advance. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields

Re: [R] Shapiro-Wilk test problem

2010-02-18 Thread Greg Hirson
, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] counting the number of times a string appears

2010-01-13 Thread Greg Hirson
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616

Re: [R] find the corresponding mean y

2010-01-11 Thread Greg Hirson
(where replacement is true), and find its mean. How can I find the corresponding mean y, which is the paired data of above sample x? Thank you very much, Annie -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North

Re: [R] string functions

2010-01-09 Thread Greg Hirson
, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] factor graphics with pca in R?

2010-01-07 Thread Greg Hirson
__ 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, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu

Re: [R] Fast nested List-data.frame

2010-01-05 Thread Greg Hirson
= data.frame(pH,marker,position) } ) -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org mailing list https

Re: [R] Fast nested List-data.frame

2010-01-05 Thread Greg Hirson
The as.numeric(d.df$pH) should have been an as.numeric(as.character(d.df$pH)). Sorry for the confusion. Greg On 1/5/10 12:33 AM, Greg Hirson wrote: Dieter, I'd approach this by first making a matrix, then converting to a data frame with appropriate types. I'm sure there is a way to do

Re: [R] Reading multiple Input Files

2009-12-21 Thread Greg Hirson
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, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry

Re: [R] Correcting for missing data combinations

2009-12-11 Thread Greg Hirson
5 A 11/12/2009 4 A 11/13/2009 0 B 11/11/2009 7 B 11/12/2009 0 B 11/13/2009 8 Truly appreciate any thoughts. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute

Re: [R] R and REST API's

2009-09-28 Thread Greg Hirson
__ 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, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student

Re: [R] Plotting two qqnorm plots:

2009-09-08 Thread Greg Hirson
data in the vector x and y: qqnorm(x) lines(qqnorm(y)) I though these two lines will do the job... However, lines doesn't seem to work. Anyways, thanks in advance! -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute

Re: [R] help with median for each row

2009-08-21 Thread Greg Hirson
computation. And also if the number of columns in the matrix are even, how could I specify which median to use? Thank you very much! -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616

[R] multiple downloads of data when evaluating plot() vs. xyplot()

2009-08-13 Thread Greg Hirson
: ftp://ftpcimis.water.ca.gov/pub/hourly/hourly006.csv Is this caused by a difference in how the two functions evaluate the data argument? Even more interesting, when adding a type = l argument to plot, the data is downloaded 3 times. Thank you for your time, Greg -- Greg Hirson ghir

Re: [R] to get the R-Squared value

2009-07-10 Thread Greg Hirson
and provide commented, minimal, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r

Re: [R] Simple monovariate classification?

2009-07-08 Thread Greg Hirson
__ 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, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural

Re: [R] Simple monovariate classification?

2009-07-08 Thread Greg Hirson
and provide commented, minimal, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org

Re: [R] is there a way to extract fata from web pages through some R function ?

2009-07-01 Thread Greg Hirson
, self-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org mailing list https

Re: [R] Using regular expressions to detect clusters of consonants in a string

2009-06-30 Thread Greg Hirson
-contained, reproducible code. -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616 __ R-help@r-project.org mailing list https

[R] Indexing a list with a list

2009-06-26 Thread Greg Hirson
(example[[i]][ind[[i]]]) #result [1] c g i [1] a b e f j [1] a b c d g h i Thank you for the help. Greg -- Greg Hirson ghir...@ucdavis.edu Graduate Student Agricultural and Environmental Chemistry 1106 Robert Mondavi Institute North One Shields Avenue Davis, CA 95616

Re: [R] Indexing a list with a list

2009-06-26 Thread Greg Hirson
], example, ind) [[1]] [1] c g i [[2]] [1] a b e f j [[3]] [1] a b c d g h i [[4]] [1] b d e f h i Warning message: In mapply(function(a, b) a[b], example, ind) : longer argument not a multiple of length of shorter On Fri, Jun 26, 2009 at 2:27 PM, Greg Hirson ghir...@ucdavis.edu mailto:ghir