csv.get(file, lowernames=FALSE, datevars=NULL, dateformat='%F',
fixdates=c('none','year'), comment.char="", autodates=TRUE,
allow=NULL, ...)TRUE to change variable names to
lower case.lowernames is
applied) of variables to consider as a factor or character vector
containing dates in a format matching dateformat. The
default is "%F" which uses the yyyy-cleanup.import is the input format (see
strptime)datevars
that have a dateformat that cleanup.import understands,
specifying fixdates allows corrections of certain formatting
inconsistencies before the fieread.csv.csv.get reads comma-separated text data files, allowing optional
translation to lower case for variable names after making them valid S
names. Original possibly non-legal names are taken to be variable
labels. Character or factor variables containing dates can be converted
to date variables. cleanup.import is invoked to finish the
job.sas.get, data.frame,
cleanup.import, read.csv,
strptime, POSIXct, Datedat <- read.table('myfile.csv')
dat <- cleanup.import(dat)Run the code above in your browser using DataLab