On 25 April 2017 at 18:05, Duncan Murdoch wrote:
| On 25/04/2017 5:41 PM, Dirk Eddelbuettel wrote:
| >
| > On 25 April 2017 at 16:04, Jeff Reichman wrote:
| > | R Users
| > |
| > | Having problems converting the following DTG into an R recognized
date/time
| > | field
| > |
| > | 01-01-2016T14:02
On 25/04/2017 5:41 PM, Dirk Eddelbuettel wrote:
On 25 April 2017 at 16:04, Jeff Reichman wrote:
| R Users
|
| Having problems converting the following DTG into an R recognized date/time
| field
|
| 01-01-2016T14:02:23.325
|
| Would I separate it into a date field and time filed then put it back
On 25 April 2017 at 16:04, Jeff Reichman wrote:
| R Users
|
| Having problems converting the following DTG into an R recognized date/time
| field
|
| 01-01-2016T14:02:23.325
|
| Would I separate it into a date field and time filed then put it back
| together???
The anytime package (on CRAN) do
> z <- as.POSIXct("01-01-2016T14:02:23.325", format="%d-%m-%YT%H:%M:%OS")
> dput(z)
structure(1451685743.325, class = c("POSIXct", "POSIXt"), tzone = "")
> z
[1] "2016-01-01 14:02:23 PST"
> format(z, "%H:%M:%OS3 on %b %d, %Y")
[1] "14:02:23.325 on Jan 01, 2016"
(Don't separate the date and time pa
On 25/04/2017 5:04 PM, Jeff Reichman wrote:
R Users
Having problems converting the following DTG into an R recognized date/time
field
01-01-2016T14:02:23.325
Would I separate it into a date field and time filed then put it back
together???
This appears to work (though I'm not sure whe
R Users
Having problems converting the following DTG into an R recognized date/time
field
01-01-2016T14:02:23.325
Would I separate it into a date field and time filed then put it back
together???
Jeff
[[alternative HTML version deleted]]
__
6 matches
Mail list logo