Re: [R] dates from Stata's .dta to R's .Rdata: become character

2009-05-03 Thread John Fox
Dear Rob, > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Rob Bakker > Sent: May-03-09 7:46 AM > To: r-help@r-project.org > Subject: [R] dates from Stata's .dta to R's .Rdata: become charac

[R] dates from Stata's .dta to R's .Rdata: become character

2009-05-03 Thread Rob Bakker
Dear Sir/Madam, I converted the .dta into .Rdata with the foreign library read.dta. However, when I use fix() I get the message that the dates are discarded. Before fix(), class(dateX) gives 'dates' as class; after fix() class(dateX) gives 'character' Why is that? Best regards, Rob Bakker