Displaying 2 results from an estimated 2 matches for "datep".
Did you mean:
date
2011 May 31
3
DateTime Math in R - POSIXct
...anyone please help me
understand why POSIXct forces my variable back to GMT?
I suspect that I'm not properly coding the tzone value, but it does not
throw an error as-is.
> tstamp <- "2011-05-22 11:45:00 MDT"
> mode(tstamp)
[1] "character"
>
> dateP <- as.POSIXct(tstamp, origin="1970-01-01", tzone="MDT")
> mode(dateP)
[1] "numeric"
> dateP
[1] "2011-05-22 11:45:00 MDT"
>
> dateN <- as.numeric(dateP)
> dateN
[1] 1306086300
>
> dateP2 <- as.POSIXct(dateN, origin=&q...
2007 Aug 09
2
Countvariable for id by date
Best R-users,
Here’s a newbie question. I have tried to find an answer to this via help and the “ave(x,factor(),FUN=function(y) rank (z,tie=’first’)”-function, but without success.
I have a dataframe (~8000 observations, registerdata) with four columns: id, dg1, dg2 and date(YYYY-MM-DD) of interest:
id;dg1;dg2;date;
1;F28;;1997-11-04;