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

2014-01-03 Thread Dmitry Pavlyuk
Ah, ok, thank you for explanations! Dmitry On 03/01/2014 20:00, Bert Gunter wrote: You misunderstand = I was not sufficiently clear. What is false is your statement that "you **need** to attach the data file before sorting." You do not. with()/within() can be used to avoid using the fully qual

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

2014-01-03 Thread Bert Gunter
You misunderstand = I was not sufficiently clear. What is false is your statement that "you **need** to attach the data file before sorting." You do not. with()/within() can be used to avoid using the fully qualified names without attaching. I did not claim that attaching first would not work, onl

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

2014-01-03 Thread Dmitry Pavlyuk
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 with one data set. Dmitry On 03/01/2014 18:28, Bert Gunter wrote: Inline Bert Gunter Genentech Nonclinical Bio

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

2014-01-03 Thread Bert Gunter
Inline Bert Gunter Genentech Nonclinical 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 wrote: > Hi Sofia! > > You need to attach the data file before

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 ro

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

2014-01-03 Thread Ista Zahn
On Fri, Jan 3, 2014 at 9:41 AM, 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 of each file are reported. > > Code_Raingouge,Y_init,M_init,D_init,h_init,m_init,Y_fin,M_fin,D_fin,h_fin,m_fin,Rainfall,N_Value