Re: [R] Ordering the rows of a data frame

2014-01-03 Thread Dmitry Pavlyuk
Hi Sofia! You need to attach the data file before sorting: attach(df_final) or just use full qualified names (like df_final$Y_init) Dmitry On 03/01/2014 16:41, Stefano Sofia wrote: Dear R users, I have two files of seasonal rainfall data (more than 10,000 rows each); here the first 8 rows

[R] Linear transformation of multivariate normal

2014-01-03 Thread Dmitry Pavlyuk
Hello, Colleges! I'm having a problem with illustration of linear transformation of multivariate gaussian RV using R. According to the theory, if X ~ N(0, I), then CX ~ N(0,CC'). But the code below doesn't illustrate this. Please could you help me to find a mistake require(tmvtnorm) C =

Re: [R] Ordering the rows of a data frame

2014-01-03 Thread Dmitry Pavlyuk
Biostatistics (650) 467-7374 Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. H. Gilbert Welch On Fri, Jan 3, 2014 at 7:08 AM, Dmitry Pavlyuk dmitry.v.pavl...@gmail.com wrote: Hi Sofia! You need to attach the data file before sorting: This is false

Re: [R] Ordering the rows of a data frame

2014-01-03 Thread Dmitry Pavlyuk
is certainly not wisdom. H. Gilbert Welch On Fri, Jan 3, 2014 at 9:21 AM, Dmitry Pavlyuk dmitry.v.pavl...@gmail.com wrote: Bert, why do you think that attach is not working in this case? Did you check it before your advice? :) I agree about generally bad approach, but it is quite convenient for work