I am generating a column of dates using POSIXct, but when I try to assign it to an existing dataframe - it gets "stored" as numbers instead of as POSIXct. Is there a way to force a column to be a specific type (POSIXct)? Thanks, Moon -- View this message in context: http://n4.nabble.com/POSIXct-type-lost-tp1584379p1584379.html Sent from the R help mailing list archive at Nabble.com.
It appears that I am creating a matrix where als columns are of type number, so my Date column has been converted to a number. Is there a way to show or display this number column as a Date again? -- View this message in context: http://n4.nabble.com/POSIXct-type-lost-tp1584379p1584410.html Sent from the R help mailing list archive at Nabble.com.
Add the number to the POSIXct origin. See table at end of R News 4/1. On Mon, Mar 8, 2010 at 7:11 AM, ManInMoon <xmoon2000 at googlemail.com> wrote:> > It appears that I am creating a matrix where als columns are of type number, > so my Date column has been converted to a number. > > Is there a way to show or display this number column as a Date again? > -- > View this message in context: http://n4.nabble.com/POSIXct-type-lost-tp1584379p1584410.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
What is "R News 4/1"? -- View this message in context: http://n4.nabble.com/POSIXct-type-lost-tp1584379p1584464.html Sent from the R help mailing list archive at Nabble.com.
Try google. On Mon, Mar 8, 2010 at 8:09 AM, ManInMoon <xmoon2000 at googlemail.com> wrote:> > What is "R News 4/1"? > -- > View this message in context: http://n4.nabble.com/POSIXct-type-lost-tp1584379p1584464.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >