Re: [R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Pascal Oettli
Hi, Try by multiplying z by 1000. HTH Pascal On 19/03/13 11:42, Noah Silverman wrote: Oops, that was a type. d is just y. If you want to reproduce, I put the entire matrix, as a csv here: http://pastebin.com/gniyD4Rc Thanks, -- Noah Silverman, M.S. UCLA Department of Statistics 8117

Re: [R] Convert to date and time of the year

2013-03-18 Thread David Winsemius
On Mar 18, 2013, at 8:05 PM, Ben Tupper wrote: Hi Janesh, On Mar 18, 2013, at 10:49 PM, Janesh Devkota wrote: Dear R Users, I have data for more than 3 years. For each year I want to find the day corresponding to Jaunary 1 of that year. For example: x -

[R] Cokriging

2013-03-18 Thread Gnai Nishani Musafer
Dear All, I run following code to estimate the blocks using cokriging ( my data set has more than 50,000 data points). All the things run finely but Once I run the predict.gstat function it gave the error message - memory.c, line 58: can't allocate memory in function m_get(). I run this code

[R] Mantel test for comparing two matrices

2013-03-18 Thread Houcemeddine Othman
Hi everyone, I have two matrices of 2000x2000 size. They consist of a measurement of RMSD deviations of a protein structure. The basic question i want to answer is the following: are there a significant differences between the two matrices? I aim to use the Mantel test. I don't really know if

[R] How can I eliminate a loop over a data.table?

2013-03-18 Thread Matteo Richiardi
I've two data.tables as shown below: *** N = 10 A.DT - data.table(a1 = c(rnorm(N,0,1)), a2 = NA)) B.DT - data.table(b1 = c(rnorm(N,0,1)), b2 = 1:N) setkey(A.DT,a1) setkey(B.DT,b1) *** I tried to change my previous data.frame implementation to a data.table implementation by changing the for-loop

[R] creating a new variable.

2013-03-18 Thread Nicole Ford
Hello, all. The following is for my own research. I have attached the relevant data in pdf from Transparency International. I am only interested in the CPI 2010 scores column. I am interested in creating a variable for several of these countries. The idea is, they will become a country

[R] creating a new variable.

2013-03-18 Thread Nicole Ford
Hello, all. The following is for my own research. I have attached the relevant data in pdf from Transparency International. I am only interested in the CPI 2010 scores column. I am interested in creating a variable for several of these countries. The idea is, they will become a country

Re: [R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Ben Bolker
Pascal Oettli kridox at ymail.com writes: Hi, Try by multiplying z by 1000. HTH Pascal Or try using persp3d() instead of rgl.surface() __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

<    1   2