import_stata | R Documentation |
Stata
dataFunction to import .dta
files while extracting meta information, e.g. variable and value labels.
import_stata(filePath, checkVarNames = TRUE, labeledStrings = FALSE)
filePath |
Source file location, ending on |
checkVarNames |
Should variable names be checked for violations of |
labeledStrings |
Should strings as labeled values be allowed? This possibly corrupts all labeled values. |
Stata
files (.dta
) store variable and value labels and assign specific formatting to variables. import_stata
imports
data from Stata
, while storing this meta-information separately in a long format data frame. Time and date variables are converted to character.
Returns a list with the actual data dat
and a data frame with all meta information in long format labels
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.