Re: [R] Difference between times

2014-04-20 Thread Prof Brian Ripley
On 18/04/2014 21:46, David Winsemius wrote: On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable time-zone names. We have not been given the 'at a

Re: [R] Difference between times

2014-04-20 Thread Prof Brian Ripley
On 20/04/2014 08:50, Prof Brian Ripley wrote: On 18/04/2014 21:46, David Winsemius wrote: On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've misspelled CET (not CEST) Neither CET nor CEST are portable

[R] to divide column cells by the mean of another column

2014-04-20 Thread Andre Zacharia
Dear all, I am getting data columnwise that I need to divide by the mean of another column If the column is the previous one this code works perfectly well: fun1 - function(beginColumn, by, data) { indx - seq(beginColumn, ncol(data), by = by) as.data.frame(t(100 - (t(data[,

Re: [R] Extracting the names of coefficients of random effects

2014-04-20 Thread Ben Bolker
Brian Willis b.h.willis at bham.ac.uk writes: Hi All, I need to be able to manipulate the names of the coefficients from *ranef()*. If there is any missing data when fitting a mixed model using lmer, no estimate is returned for the associated level for that random effect. Thus if the

Re: [R] How to use rainbow function without the gamma argument

2014-04-20 Thread Francesco Brundu
Hi Boris, yes I tried this way and it worked. The fact is that I wanted to be compliant with the old code, I did not want to change anything. So I wanted to find a new way to rewrite the code. Thanks ~ Francesco Brundu On 19 April 2014 23:18, Boris Steipe boris.ste...@utoronto.ca wrote: Have

Re: [R] How to use rainbow function without the gamma argument

2014-04-20 Thread Francesco Brundu
Thanks Boris for the detailed answer. I thought to make it backward compatible because I did not know if gamma parameter would change the result if absent. As far as I can see changes in my results are not relevant, so I think to follow your advice to update the old code. Thanks ~ Francesco

Re: [R] Need help to convert data frame to transaction set.

2014-04-20 Thread Sathish Kumar
Hi Arul, Thanks for your reply. I am trying your approach now. I will reply once again with my result. Regards, Sathish On Sat, Apr 19, 2014 at 6:43 PM, arun smartpink...@yahoo.com wrote: Hi, Without a reproducible example using ?dput() or the package name, it is a bit difficult to

Re: [R] Need help to convert data frame to transaction set.

2014-04-20 Thread Sathish Kumar
Hi AK, First, your timely response is greatly appreciated. Contrary to what you are getting, I am getting the below when I enter the same code lines1 - readLines(spares.csv) head(lines1) [1] Cust_ID,Parts1,FENDERS2,FENDERS [4] 3,OIL FILTERS4,BMW SERVICE FLUIDS

Re: [R] to divide column cells by the mean of another column

2014-04-20 Thread Bert Gunter
R has no cells. You need to do your homework by reading An Introduction to R , which ships with R, or one of the many R web tutorials of your choice. What you describe is trivial once you have made a minimal effort to learn R. In particular, ?[ explains how to index data frames; but a tutorial

Re: [R] to divide column cells by the mean of another column

2014-04-20 Thread arun
Hi, May be this helps: fun1 - function(beginColumn, by, data) {     indx - seq(beginColumn, ncol(data), by = by)     dataNew - data[, indx[1]:ncol(data)]     indx1 - cumsum(seq(ncol(data)) %in% indx)     indx2 - indx1[indx1 != 0]     lst1 - lapply(split(seq_along(indx2), indx2), function(i) {

Re: [R] to divide column cells by the mean of another column

2014-04-20 Thread arun
Hi Andre, A slight correction: fun1 - function(beginColumn, by, data) {     indx - seq(beginColumn, ncol(data), by = by)     dataNew - data[, indx[1]:ncol(data)]     indx1 - cumsum(seq(ncol(data)) %in% indx)     indx2 - indx1[indx1 != 0]     lst1 - lapply(split(seq_along(indx2), indx2),

[R] What do the colours of the scatterplot3d actually show?

2014-04-20 Thread mfbx9jhy
Hello, Please could anyone tell me the significance of the graded red-black color when using scatterplot3d? At first I thought it was just going from the very 'near' to the back of the chart area, but as you can see from the pictures some of the points in the back are bright red. The

Re: [R] What do the colours of the scatterplot3d actually show?

2014-04-20 Thread Uwe Ligges
On 20.04.2014 17:51, mfbx9jhy wrote: Hello, Please could anyone tell me the significance of the graded red-black color when using scatterplot3d? At first I thought it was just going from the very 'near' to the back of the chart area, but as you can see from the pictures some of the points in

Re: [R] Difference between times

2014-04-20 Thread David Winsemius
On Apr 20, 2014, at 2:16 AM, Prof Brian Ripley wrote: On 20/04/2014 08:50, Prof Brian Ripley wrote: On 18/04/2014 21:46, David Winsemius wrote: On Apr 18, 2014, at 12:59 PM, Prof Brian Ripley wrote: On 18/04/2014 19:46, Rui Barradas wrote: Hello, The reason why is that you've

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-20 Thread Alpesh Pandya
I keep on trying from various networks but I still get the same error. I don't this this has anything to do with network or ability to download the package (as I can install other packages fine). This must be something in base R or dependencies issues (that R is not spelling out). I know R is

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-20 Thread Duncan Murdoch
On 20/04/2014, 2:45 PM, Alpesh Pandya wrote: I keep on trying from various networks but I still get the same error. I don't this this has anything to do with network or ability to download the package (as I can install other packages fine). This must be something in base R or dependencies issues

Re: [R] R 3.0.3, Windows 7: Problem installing XML package

2014-04-20 Thread Jeff Newmiller
Hard to help you when the problem simply does not happen for others. As for Windows being not a focus, that is not at all true. I use it regularly on Windows at work. That being said, there are thousands of packages and those each involve their own subset of R users. There are also many