Re: [R] Time vs Concentration Graphs by ID

2010-10-15 Thread Ista Zahn
On Fri, Oct 15, 2010 at 7:29 AM, Anh Nguyen wrote: > Thank you for the very helpful tips. Just one last question: > - In the lattice method, how can I plot TIME vs OBSconcentration and TIME vs > PREDconcentration in one graph (per individual)? You said "in lattice you > would replace 'smooth' by '

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 3:22 PM, Megh Dal wrote: > Hi Gabor, please see the attached files which is in text format. I have > opened them on excel then, used clipboard to load them into R. Still really > unclear what to do. > > Also can you please elaborate this term "index = list(1, 2), FUN = >

Re: [R] feed cut() output into goodness-of-fit tests

2010-10-15 Thread Ista Zahn
On Fri, Oct 15, 2010 at 10:22 AM, Andrei Zorine wrote: > Hello, > My question is assuming I have cut()'ed my sample and look at the > table() of it, how can I compute probabilities for the bins? I actually don't know what you mean by this (my own ignorance probably). Do I have > to parse table'

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh
Thanks Gabor for pointing to my old version. However I got one more question why the argument tz="" is sitting there? As you are not passing any explicit value for that, I am assuming it is redundant. Without any tz argument, I got following: head(read.zoo(file="f:/dat1.txt", header=T, sep=",",

Re: [R] Beginner question on bar plot

2010-10-15 Thread Peter Alspach
Tena koe Steven cutData <- rbind(summary(Acut), summary(Bcut)) barplot(cutData, beside=TRUE) should get you started. The challenge, as you identify, is to get the data into the appropriate form and the simple approach I have used may not work for your real data. HTH Peter Alspach > --

[R] Recovering x/y coordinates from a scatterplot image

2010-10-15 Thread Rob James
Do I recall correctly that there is an R package that can take an image, and help one estimate the x/y coordinates? I can't find the package, thought it was an R-tool, but would appreciate any leads. Thanks, Rob __ R-help@r-project.org mailing list

Re: [R] creating 'all' sum contrasts

2010-10-15 Thread Jonathan Christensen
Michael, Let c_1 and c_2 be vectors representing contrasts. Then c_1 and c_2 are orthogonal if and only if the inner product is 0. In your example, you have vectors (1,0,-1) and (0,1,-1). The inner product is 1, so they are not orthogonal. It's impossible to have more orthogonal contrasts than you

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 4:27 PM, Megh wrote: > > Thanks Gabor for pointing to my old version. However I got one more question > why the argument tz="" is sitting there? As you are not passing any explicit It would otherwise assume "Date" class. > str(read.zoo(file="dal1.csv", header=TRUE, sep=",

Re: [R] feed cut() output into goodness-of-fit tests

2010-10-15 Thread Phil Spector
Andrei - Looking inside the code for cut, it looks like you could retrieve the breaks as follows: getbreaks = function(x,nbreaks){ nb = nbreaks + 1 dx = diff(rx <- range(x,na.rm=TRUE)) seq.int(rx[1] - dx/1000,rx[2] + dx/1000,length.out=nb) } The dx/1000 is what makes cut()'s br

[R] using optimize with two unknowns, e.g. to parameterize a distribution with given confidence interval

2010-10-15 Thread David LeBauer
Hi, I would like to write a function that finds parameters of a log-normal distribution with a 1-alpha CI of (x_lcl, x_ucl): However, I don't know how to optimize for the two unknown parameters. Here is my unsuccessful attempt to find a lognormal distribution with a 90%CI of 1,20: prior <- func

Re: [R] using apply function and storing output

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 6:46 AM, David A. wrote: > > Thanks Dennis, > > I don't think it was a problem of not feeding in a function for rollapply(), > because I was using mean() and my co.var() function in the FUN argument. > The key part seems to be the transformation that zoo() does to the matr

[R] Dealing with Non-Standard Hours

2010-10-15 Thread Clint Bowman
A data set I obtained has the hours running from 01 through 24 rather than the conventional 00 through 23. My favorite, strptime, balks at hour 24. I thought it would be easy to correct but it must be too late on Friday for my brain and caffeine isn't helping. TIA for a hint, Clint -- Cli

Re: [R] Recovering x/y coordinates from a scatterplot image

2010-10-15 Thread Barry Rowlingson
On Fri, Oct 15, 2010 at 9:46 PM, Rob James wrote: > Do I recall correctly that there is an R package that can take an image, and > help one estimate the x/y coordinates?  I can't find the package, thought it > was an R-tool, but would appreciate any leads. > > Thanks, I dont know an R package fo

[R] compiling and testing R-2.12.0

2010-10-15 Thread Kjetil Halvorsen
I downloaded the tarball for R-2-12.0, made ./configure make without problems. Then make test ...which have now been running for more than an hour, and seems to have stalled at: comparing 'reg-plot-latin1.ps' to './reg-plot-latin1.ps.save' ... OK make[3]: Leaving directory `/home/kjetil/R/R-2.12.

Re: [R] Data Parameter extract

2010-10-15 Thread joeman3285
Awesome! It worked. Thank you both for your help. -joe -- View this message in context: http://r.789695.n4.nabble.com/Data-Parameter-extract-tp2996369p2997761.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mail

Re: [R] Dealing with Non-Standard Hours

2010-10-15 Thread jim holtman
You could have posted an example of your data. You can use 'sub' to substitute one set of characters for another in your data. There are other ways of doing it if we had an example of your data. On Fri, Oct 15, 2010 at 5:55 PM, Clint Bowman wrote: > A data set I obtained has the hours running f

Re: [R] compiling and testing R-2.12.0

2010-10-15 Thread Patrick Connolly
On Fri, 15-Oct-2010 at 07:41PM -0300, Kjetil Halvorsen wrote: |> I downloaded the tarball for R-2-12.0, made |> ./configure |> make |> |> without problems. |> |> Then |> make test |> ...which have now been running for more than an hour, and seems to |> have stalled at: |> comparing 'reg-plot-lat

[R] trouble with installing R-2.12.0 from source on Windows

2010-10-15 Thread Erin Hodgess
Dear R People: I'm trying to install R-2.12.0 from source on a Netbook with Windows XP. I have installed the Rtools.exe (version 2.12) However, when I enter "tar xvfz R-2.12.0.tar.gz" I keep getting the message "cannot change owneship to uid 501, gid 20 invalid argument" Has anyone else run ac

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Gabor Grothendieck
On Fri, Oct 15, 2010 at 9:56 PM, Megh Dal wrote: > However I have noticed a strange thing. Placing of "tz = """ matters here: > >> head(read.zoo("f:/dat1.txt", sep = ",", header = TRUE, format =  "%m/%d/%Y >> %H:%M:%S"), tz = "") Your tz argument has been passed as an argument of head. You want

Re: [R] Time vs Concentration Graphs by ID

2010-10-15 Thread Dennis Murphy
Hi: On Fri, Oct 15, 2010 at 4:29 AM, Anh Nguyen wrote: > Thank you for the very helpful tips. Just one last question: > - In the lattice method, how can I plot TIME vs OBSconcentration and TIME > vs PREDconcentration in one graph (per individual)? You said "in lattice > you would replace 'smooth

Re: [R] Recovering x/y coordinates from a scatterplot image

2010-10-15 Thread Dennis Murphy
Hi Rob: Are you thinking of the digitize package? HTH, Dennis On Fri, Oct 15, 2010 at 1:46 PM, Rob James wrote: > Do I recall correctly that there is an R package that can take an image, > and help one estimate the x/y coordinates? I can't find the package, > thought it was an R-tool, but wou

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh Dal
However I have noticed a strange thing. Placing of "tz = """ matters here: > head(read.zoo("f:/dat1.txt", sep = ",", header = TRUE, format = "%m/%d/%Y > %H:%M:%S"), tz = "") data.open data.high data.low data.close 2010-10-15 73.7 73.7 73.7 73.7 2010-10-15 73.8

Re: [R] Problem with merging two zoo objects

2010-10-15 Thread Megh Dal
I dont know whether I am missing something or not: > head(read.zoo(file="f:/dat1.txt", header=T, sep=",", format = "%m/%d/%Y > %H:%M:%S"), tz="GMT") data.open data.high data.low data.close 2010-10-15 73.7 73.7 73.7 73.7 2010-10-15 73.8 73.8 73.8

[R] R & MySQL (Databases)

2010-10-15 Thread Santosh Srinivas
Dear R-helpers, Considering that a substantial part of analysis is related data manipulation, I'm just wondering if I should do the basic data part in a database server (currently I have the data in .txt file). For this purpose, I am planning to use MySQL. Is MySQL a good way to go about? Are ther

Re: [R] trouble with installing R-2.12.0 from source on Windows

2010-10-15 Thread Prof Brian Ripley
On Fri, 15 Oct 2010, Erin Hodgess wrote: Dear R People: I'm trying to install R-2.12.0 from source on a Netbook with Windows XP. I have installed the Rtools.exe (version 2.12) However, when I enter "tar xvfz R-2.12.0.tar.gz" I keep getting the message "cannot change owneship to uid 501, gid

<    1   2