Took me a minute to grok the gsubfn solution, but that is sweet! very nice.
thank you very much both for the suggestions,
Landon
--
View this message in context:
http://www.nabble.com/Simple-as.Date-question-dealing-with-a-timezone-offset-tp25491955p25512218.html
Sent from the R help mailing
Using strapply() from the gsubfn package, apply the
pattern (2nd arg) to string (1st arg). The matches
to the back references (i.e. the portions of the pattern
in parens) are passed to separate arguments of the
These arguments are date, offset and year respectively.
Then the function
calculates t
On Sep 17, 2009, at 11:25 AM, esawdust wrote:
I've been trying to understand the as.Date functionality and I have
a date
and time stamp field that looks like this:
"Tue Sep 15 09:22:09 -0600 2009"
and I need to turn it into an R Date object for analysis.
Simple date conversions I have do
I've been trying to understand the as.Date functionality and I have a date
and time stamp field that looks like this:
"Tue Sep 15 09:22:09 -0600 2009"
and I need to turn it into an R Date object for analysis.
Simple date conversions I have down, no problem:
> adate = c("7/30/1959")
> as.Date(a
4 matches
Mail list logo