[R] time extraction and normalization
R. Michael Weylandt
michael.weylandt at gmail.com
Tue Oct 16 00:09:26 CEST 2012
Use something like
format(as.POSIXct(xxx, format = "STRING"), format = "STRING2")
where the appropriate formatting codes can be worked out using the
info in ?strptime
On Mon, Oct 15, 2012 at 9:32 PM, york8866 <yu_york at hotmail.com> wrote:
> Dear all,
> I have a series of time variables such as:
> How could I extract the time as a number, so that I can normalize the times
> by the first time variable?
> View this message in context: http://r.789695.n4.nabble.com/time-extraction-and-normalization-tp4646275.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help