Re: [R] expand dataframe but time gap is not the same

2015-12-11 Thread Dagmar
Hello Bill (and Petr and all), Thank you very much! That was exactly what I was looking for! I could have never accomplished that on my own. Have a great time, Tagmarie Am 09.12.2015 um 18:07 schrieb William Dunlap: You can use the approx() function (in that stats package) to put 5 equally s

Re: [R] expand dataframe but time gap is not the same

2015-12-09 Thread William Dunlap
You can use the approx() function (in that stats package) to put 5 equally spaced times between your high and low water times. E.g., in the following 'tmp' will be your interpolated times, in seconds since 1970, which I clumsily convert to POSIX times (I can never remember how to deal with time zon

Re: [R] expand dataframe but time gap is not the same

2015-12-09 Thread Dagmar
iginal Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Dagmar Sent: Thursday, December 03, 2015 11:52 AM To: R help Subject: [R] expand dataframe but time gap is not the same Hello, I hope someone can help me with my problem: I have a dataframe like this: datframe &l

Re: [R] expand dataframe but time gap is not the same

2015-12-03 Thread PIKAL Petr
Behalf Of Dagmar > Sent: Thursday, December 03, 2015 11:52 AM > To: R help > Subject: [R] expand dataframe but time gap is not the same > > Hello, > I hope someone can help me with my problem: > I have a dataframe like this: > > datframe <- data.frame(dates=c("02.08.

[R] expand dataframe but time gap is not the same

2015-12-03 Thread Dagmar
Hello, I hope someone can help me with my problem: I have a dataframe like this: datframe <- data.frame(dates=c("02.08.2013","03.08.2013","03.08.2013"), times =c("22:10","4:04", "10:18"), tide =c("NW","HW", "NW")) datframe Timestamp <- paste(datframe$dates, datframe$times) myframe2 <- cbind( Ti