Re: [R] how di I write a for loop in which i is in POSIX?

2014-05-12 Thread Adams, Jean
Christiane, You will get replies to your queries more quickly if you include reproducible code in your question. For example, it would have been helpful if you had posted the result returned by dput(head(treat)) rather than just copying and pasting the first few rows of treat. treat -

Re: [R] how di I write a for loop in which i is in POSIX?

2014-05-12 Thread arun
Hi, You can also try: library(plyr) treat3 - ddply(treat, .(Zugnacht), mutate, su=min(Vollzeit), sa=max(Vollzeit)) identical(treat2[,c(2,1,3:4)],treat3) #[1] TRUE A.K. On Monday, May 12, 2014 2:46 PM, Adams, Jean jvad...@usgs.gov wrote: Christiane, You will get replies to your queries more

[R] how di I write a for loop in which i is in POSIX?

2014-05-08 Thread peregrine
Hallo, I have a table in which I would like to insert the min and max values of another colum (date and time in as.POSIXct Format). This is my row table, where su and sa are still the same as Vollzeit: head(treat) Vollzeit Datum Zugnacht su