Re: [R] Converting Date Time values

2021-04-26 Thread Duncan Murdoch
On 26/04/2021 3:08 p.m., Jeff Reichman wrote: Whoops happy fingers yes I meant “or” POSIXct are easier to work with as data (e.g. a column in a dataframe). POSIXlt is easier to work with as dates & times, and has a bigger range. See details of the comparison in the ?POSIXt help page. Dunc

Re: [R] Converting Date Time values

2021-04-26 Thread Jeff Reichman
Whoops happy fingers yes I meant “or” From: Bert Gunter Sent: Monday, April 26, 2021 1:37 PM To: reichm...@sbcglobal.net Cc: R-help Subject: Re: [R] Converting Date Time values Did you mean to use "or" instead of "and" in your query? If so, no comment. If &quo

Re: [R] Converting Date Time values

2021-04-26 Thread Bert Gunter
Did you mean to use "or" instead of "and" in your query? If so, no comment. If "and," then yes, as that allows a great deal of functionality (ordering, comparisons, time-date arithmetic, etc.) that would otherwise be painful or require special packages. IMO only, of course. Bert Gunter "The tro

[R] Converting Date Time values

2021-04-26 Thread Jeff Reichman
r-help Generally speaking is it better to convert date/time values to "POSIXlt" and "POSIXct" objects? Jeff Reichman [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st