Re: [R] Loop does not work: Error in else statement (II)

2014-10-02 Thread Frank S.
Jim, Thanks for the comment about else! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www

Re: [R] Loop does not work: Error in else statement (II)

2014-09-30 Thread PIKAL Petr
Hi Slightly better but still html scrambled. see in line > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Frank S. > Sent: Tuesday, September 30, 2014 2:55 PM > To: r-help@r-project.org > Subject: [R]

Re: [R] Loop does not work: Error in else statement

2014-09-30 Thread Frank S.
Dear Berend and Petr, I do apologise for the disorderly code I posted. I have tried to solve it in a new mail. Frank S. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list htt

[R] Loop does not work: Error in else statement (II)

2014-09-30 Thread Frank S.
Hi to all members of R list, I�m working with data.table package, and with 6 variables: ID: Subject identifier born: Birthdate start: Starting date register: date of measurement value: Value of measurement end: date of expiration of the measurements. So, the natural order of d

Re: [R] Loop does not work: Error in else statement

2014-09-29 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Frank S. > Sent: Monday, September 29, 2014 9:17 PM > To: r-help@r-project.org > Subject: [R] Loop does not work: Error in else statement > > Hi

Re: [R] Loop does not work: Error in else statement

2014-09-29 Thread Berend Hasselman
Please, please do not post in HTML as the Posting guide requests. See the tail of each message to R-help. Your code is completely messed up and unreadable. Berend On 29-09-2014, at 21:17, Frank S. wrote: > Hi to all members of R list, > > > > I�m working with data.table package, and with 6

[R] Loop does not work: Error in else statement

2014-09-29 Thread Frank S.
Hi to all members of R list, I�m working with data.table package, and with 6 variables: "ID" (Identifier), "born" (Birthdate), "start" (Starting date), "register" (date of measurement), "value"and "end" (date of expiration). So, the natural order of dates would be: born =< start =< register =

Re: [R] loop does not work

2008-07-28 Thread Sarah Goslee
You are missing a right paren in this line: >while (jhttp://www.functionaldiversity.org __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide

[R] loop does not work

2008-07-28 Thread aude Valade
Hi, I am new to R and am trying to do a loop but it seems not to run after one turn. What I want to do is subset my dataframe (extract one station and one day) to calculate and store the maxima that can then be plotted. I have an error message at the end of each loop: Error: unexpected '}' in "}"