Skip to content

importing date vector with read.table

2 messages · Jack Johnson, Brian Ripley

#
On Fri, 10 Dec 2010, Jack Johnson wrote:

            
It is easiest to simply read the column as character, and convert 
later by as.Date(x, format="%d.%m.%Y")

You might want to consider using read.delim2 to get all the usual 
defaults for a tab-delimited file in a locale using comma as decimal 
separator.