Re: [R] Plot with Julian dates.

2006-08-13 Thread Spencer Graves
1. Are you familiar with the zoo package and vignette (as described, e.g., in http://finzi.psych.upenn.edu/R/Rhelp02a/archive/60217.html)? 2. If yes and if you would like further help from this listserve, PLEASE do read the posting guide "www.R-project.org/posting-guide.htm

Re: [R] proc standardize & data frame x and y

2006-08-13 Thread hadley wickham
> 1) Can someone recommend an equivalent to SAS PROC Standardize in R? I > am in need to frequently standardize a data frame, with z-scores, or > squash to 0-1 scale - is there a slick function or package someone can > recommend? You could try rescaler in the reshape package. It currently suppor

[R] Vector Join

2006-08-13 Thread Michael Zatorsky
Hi, I'm working on producing a simple cumulative frequency distribution. Thanks to the help of the good people on this list I now have four vectors that I'd like to join/relate into a table. e.g. v1 <- myHistogram$breaks # classes v2 <- myHistogram$counts # freqs v3 <- c

Re: [R] Vector Join

2006-08-13 Thread Paul Smith
On 8/13/06, Michael Zatorsky <[EMAIL PROTECTED]> wrote: > I'm working on producing a simple cumulative frequency > distribution. > > Thanks to the help of the good people on this list I > now have four vectors that I'd like to join/relate > into a table. e.g. > > > v1 <- myHistogram$breaks

[R] How to reply to a thread if receiving R-help mails in digest form

2006-08-13 Thread Dirk Enzmann
I receive R-help messages in digest form that makes it difficult to answer a post. I noticed that my answer is not added to the thread (instead, a new thread is started) although I use the same subject line (starting with "Re: ") as the original post. Is there a solution (I prefer the digest to

Re: [R] How to reply to a thread if receiving R-help mails in di

2006-08-13 Thread Ted Harding
On 13-Aug-06 Dirk Enzmann wrote: > I receive R-help messages in digest form that makes it > difficult to answer a post. I noticed that my answer is > not added to the thread (instead, a new thread is started) > although I use the same subject line (starting with "Re: ") > as the original post. Is t

[R] How to order or sort a data.frame

2006-08-13 Thread John Kane
I have a dataframe where I would like to order first by variable, year, and then within that variable by month. So far the only way that I have seen to do this is to order by year and then subset year and sort by month and then do an rbind to get things back together. Is this the right approac

Re: [R] How to reply to a thread if receiving R-help mails in digest form

2006-08-13 Thread Dieter Menne
Dirk Enzmann uni-hamburg.de> writes: > > I receive R-help messages in digest form that makes it difficult to > answer a post. I noticed that my answer is not added to the thread > (instead, a new thread is started) although I use the same subject line > (starting with "Re: ") as the original

Re: [R] How to order or sort a data.frame

2006-08-13 Thread Dieter Menne
John Kane yahoo.ca> writes: > > I have a dataframe where I would like to order first > by variable, year, and then within that variable by > month. http://www.ats.ucla.edu/STAT/r/faq/sort.htm and http://wiki.r-project.org/rwiki/doku.php?id=misc:rtips-status Dieter _

Re: [R] How to order or sort a data.frame

2006-08-13 Thread Dimitrios Rizopoulos
try the following: mdf <- data.frame(us.state, count, year, month) mdf[order(mdf$year, mdf$month), ] I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium T

Re: [R] How to fit bivaraite longitudinal mixed model ?

2006-08-13 Thread Spencer Graves
Have you considered the 'nlme' package, well documented in Pinheiro and Bates (2000) Mixed-Effects Models in S and S-Plus (Springer)? Hope this helps. Spencer Graves souvik banerjee wrote: > Hi > Is there any way to fit a bivaraite longitudinal mixed model using R.

[R] split a y-axis to show data on different scales

2006-08-13 Thread Rashmi Mathur
Hello, How do I split a y-axis to plot data on different scales? Eg: x <- 1:10 y <- c(-0.01,0.79,0.74,0.55,-0.67,0.32,-0.47,-0.05,723,759) plot(x,y) I'd like to show these data on the same plot, but the way it's written, all contrast in the first 8 data points is lost. Can R split a y-axis for

Re: [R] split a y-axis to show data on different scales

2006-08-13 Thread hadley wickham
> How do I split a y-axis to plot data on different scales? The short answer: you shouldn't. The whole point of plotting the data is so that you can compare them visually on the same scale. As soon as you split the scales you can no longer do this, and you effectively have two separate graphs.

[R] Puzzling warning using 2.3.1...

2006-08-13 Thread Brian Lunergan
Greetings folks: Stepped away from a win/lin dual boot system and spent the better part of the past week resetting a windows only arrangement. Before the switch I was running 2.3.1 without any strange behaviours. When I reached the point of putting it back on the machine I would get this puzzli

Re: [R] Puzzling warning using 2.3.1...

2006-08-13 Thread Thomas Lumley
On Sun, 13 Aug 2006, Brian Lunergan wrote: > Greetings folks: > > Stepped away from a win/lin dual boot system and spent the better part of the > past week resetting a windows only arrangement. > > Before the switch I was running 2.3.1 without any strange behaviours. When I > reached the point of

Re: [R] split a y-axis to show data on different scales

2006-08-13 Thread John Kane
--- Rashmi Mathur <[EMAIL PROTECTED]> wrote: > Hello, > > How do I split a y-axis to plot data on different > scales? > > Eg: > > x <- 1:10 > y <- > c(-0.01,0.79,0.74,0.55,-0.67,0.32,-0.47,-0.05,723,759) > plot(x,y) > > I'd like to show these data on the same plot, but > the way it's written,

Re: [R] Puzzling warning using 2.3.1...

2006-08-13 Thread Prof Brian Ripley
On Sun, 13 Aug 2006, Brian Lunergan wrote: > Greetings folks: > > Stepped away from a win/lin dual boot system and spent the better part > of the past week resetting a windows only arrangement. > > Before the switch I was running 2.3.1 without any strange behaviours. > When I reached the point

Re: [R] lme4 and lmeSplines

2006-08-13 Thread Rod Ball
The source of the problem is that lmeSplines requires a set of iid random effects corresponding to a transformed smoothing spline basis (`pdIdent' structure in nlme) i.e. pdIdent(~Zs -1), where Zs is the transformed set of spline basis functions. Kevin's model does not work because each of his

[R] Gower Similarity Coefficient

2006-08-13 Thread Timothy Rye
I'm interested in clustering my data using the Gower Similarity Coefficient, and I was wondering if R is capable of using that metric Timothy Rye [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] Geometrical Interpretation of Eigen value and Eigen vector

2006-08-13 Thread Izmirlian, Grant \(NIH/NCI\) [E]
Ok, I had a look at it. It seems like awefully far to dig for the main point which is easily summarized in a few sentences. If we super-impose the pre-image and image spaces (plot the input and output in the same picture), then in 1 dimension, a linear function, say 'a x', takes its input, x,

Re: [R] Speeding indexing and sub-sectioning of 3d array

2006-08-13 Thread Ray Brownrigg
> Date: Thu, 10 Aug 2006 14:34:27 -0400 > From: "Swidan, Firas" <[EMAIL PROTECTED]> > > Hi Patrick, > > Thanks for the help. The function I listed is just an example. I isolated > and kept only the problematic part in my code for clarity sake. I ended up > implementing the functionality in C and

[R] GAM Package: preplot.gam taking a **long** time

2006-08-13 Thread Paul Check
Hi: I have a large data set that I'm testing and I'm finding that preplot.gam is taking a very long amount of time to compute (like, more than 20 minutes). My machine is 32-bit, Debian unstable, 4GB memory, dual Xeon 3GHz. While the data set is very large, the gam() procedure is able to compute