Re: [R] Date Time Conversion

2019-05-08 Thread Rui Barradas
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

Re: [R] Date-time Conversion from Numeric Representations

2010-12-03 Thread Uwe Ligges
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

Re: [R] Date Time conversion

2008-09-26 Thread Gabor Grothendieck
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