reads data from various formats into R. Used in sdcApp
.
readMicrodata(
path,
type,
convertCharToFac = TRUE,
drop_all_missings = TRUE,
...
)
a data.frame or an object of class 'simple.error'. If a stata file was read in, the resulting data.frame
has an additional attribute lab
in which variable and value labels are stored.
a file path
which format does the file have. currently allowed values are
sas
spss
stata
R
rdf
csv
(logical) if TRUE, all character vectors are automatically converted to factors
(logical) if TRUE, all variables that contain NA-values only will be dropped
additional parameters. Currently used only if type='csv'
to pass
arguments to read.table()
.
Bernhard Meindl