Try this:
> library(chron)
> x <- c("06/25/04", "06/25/2004", "03/03/59", "03/03/1959")
> chron(x)
[1] 06/25/04 06/25/04 03/03/59 03/03/59
On Mon, Mar 23, 2009 at 8:06 PM, Farrel Buchinsky wrote:
> How does one convert to a date format when survey respondents have
> used two different date form
Try using 'strsplit' to split your string on the '/' and then create a
series of 'if's to determine how you want to output the new string.
You will probably need this approach since you may have to check the
validity and ranges of the numbers.
On Mon, Mar 23, 2009 at 8:06 PM, Farrel Buchinsky wro
2 matches
Mail list logo