Displaying 1 result from an estimated 1 matches for "s05962".
2001 Oct 15
0
date and chron library help...!
...s the orginal data is in SAS format.
3 columns of this dataset are supposed to be dates, but read.xport doesn't recognise them as dates (all columns are read in as mode numeric). So I load up the date library and go ahead to convert the 3 columns into dates.
So doing ...
> library(date)
> s05962$DOB_as.date(s05962$DOB)
> s05962$DOB # to check if everything is ok, and it is...dates have been correctly converted...
However, when I look at the first 10 rows of the whole dataframe,
> s05962[1:10,] # The column DOB is is still in numeric mode... So I try again, but the following...