Hello,
as.Date() outputs an object of class "Date", you want an object of class
c("POSIXt", "POSIXct"). Use as.POSIXct().
Hope this helps,
Rui Barradas
Às 16:04 de 08/05/19, reichm...@sbcglobal.net escreveu:
r-Help Community
I need to convert a date-time field (column) but I'm losing
On 03.12.2010 16:31, Alexander Salim wrote:
Hi all,
I have a dataset called ,dataSet1'. The time column is given in a numeric
code beginning with the year and ending with the minutes. Frist I tried the
strptime() function to solve the problem. It gave me just the date back (and
not the date an
chron uses:
- separate arguments for date and time -- not a single one as you have
- a separate system for the codes, not the % codes of Date and POSIXt classes
If you want to specify the date and time all as one string
rather than two arguments, use as.chron instead of
chron -- as.chron does use
3 matches
Mail list logo