It depends on your local time zone setting (options("time.zone")). You can change that, or force data to be read in a consistent time zone like this: timeDate("4/04/2006 0:00:00 AM",in.format="%m/%d
The tapply() function will produce a summary table that you want. Note that this version return a matrix if no more than 1 value is found for n1 or n2. The I() function simply returns what is passed
We have a situation where we know the variance of observations for a linear regression problem and need confidence limits on the parameter estimates. The documentation in the NOTES section for lm sta
Thanks to Rolf Turner and Brian Ripley, who responded to my question. Thanks especially to Rolf Turner, who was gracious in answering some followup questions. Unfortunately, I did not express my que
You can convert it to a matrix or array also: x <- matrix(sample( 0:4, 100, replace=TRUE), ncol=10) The documentation on sample should indicate that the probability of selection for each value can b
The aggregate() function should do what you want. Look at the aggregate.data.frame() documentation. The data would need to be sorted by date or ID and date to work correctly. Dave "Schwarz,Paul" <PS
This is probably best done by using the ability of aggregateSeries to compute running statistics. I did not make this a generic function, but with some work, that could be done. Here's the concrete
It appears that the text should be changed first. The function sedit() in the hmisc library will correctly change the data. I assume that library is available in the student edition. The correct syn
Use apply instead of a for loop. Here's an example of a function that should work. Note that apply returns a matrix that would need to be transposed. apply(matrix(c( 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
I have also found this to be a troubling characteristic of the GUI graphics. Plotting a large number of points is fast and easy, but wanting specialized treatments by groups is difficult and sometim
Spline interpolation is not well developed in S, but you should be able to get close to what you want with the spline() function. Dave TzamouranisY@LouisDreyfus.com Sent by: s-news-owner@lists.biost
I basically copied the "[.Surv" function to extract rows or columns from a specialized matrix that I need to manipulate in much the same way as the output from Surv(). However, it does not behave the
Thanks, it was not clear how to use setMethod for this case. Dave Tim Hesterberg <timh@insightful.com> 03/22/2005 12:10 PM To: David L Lorenz <lorenz@usgs.gov> cc: s-news@wubios.wustl.edu Subject: R
The aspect argument also works in the levelplot() function. Dave "David Cairns" <cairns@tamu.edu> Sent by: s-news-owner@lists.biostat.wustl.edu 03/23/2005 08:55 PM To: <s-news@lists.biostat.wustl.ed