| readMicrodata | R Documentation |
reads data from various formats into R. Used in sdcApp.
readMicrodata(
path,
type,
convertCharToFac = TRUE,
drop_all_missings = TRUE,
...
)
path |
a file path |
type |
which format does the file have. currently allowed values are
|
convertCharToFac |
(logical) if TRUE, all character vectors are automatically converted to factors |
drop_all_missings |
(logical) if TRUE, all variables that contain NA-values only will be dropped |
... |
additional parameters. Currently used only if |
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.
if type is either 'sas', 'spss' or 'stata', values read in as NaN
will be converted to NA.
Bernhard Meindl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.