[R] how to edit my R codes into a efficient way

2007-03-06 Thread Xuhong Zhu
Hello, Everyone, I am a student an a new learner of R and I am trying to do my homework in R. I have 10 files need to be read and process seperately. I really want to write the codes into something like macro to save the lines instead of repeating 10 times of similar work. The following is part

Re: [R] how to edit my R codes into a efficient way

2007-03-06 Thread Xuhong Zhu
Again, thanks a lot. Xuhong On 3/6/07, Petr Klasterecky [EMAIL PROTECTED] wrote: Xuhong Zhu napsal(a): Hello, Everyone, I am a student an a new learner of R and I am trying to do my homework in R. I have 10 files need to be read and process seperately. I really want to write the codes

[R] Question about the smooth.Pspline

2007-03-06 Thread Xuhong Zhu
Hello, Everyone, I want to use the smooth.Pspline to smooth my data but R give me the error message as follows: Error in smooth.Pspline(sort.e$time, sort.e$cuff, method = 3) : X not strictly increasing my data looks like the following: id cuff time patient ... 2783