[R] Date in dataframe manipulation
macq at llnl.gov
Fri Mar 24 22:19:27 CET 2006
or perhaps the subset() function.
The way you are doing it is more complex than necessary (internally
complex, I mean, not how the code looks).
At 3:29 PM -0500 3/24/06, Dan Chan wrote:
>I have a dataframe with many columns, including date and I want to keep
>only a few of the columns including date column.
>I used the following command:
>with(FireDataAppling, cbind(STARTDATE, County, TOTAL, CAUSE)
>It works, but the date becomes days from Jan 1, 2001.
> 2001-01-04 00:00:00
>1703 Levels: .........
>After the cbind command, the entry becomes a 4.
>I want to get 2001-01-04. What command should I use?
>Georgia Forestry Commission
>P O Box 819
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
More information about the R-help