powered by
This is a wrapper around haven::read_dta with some exception handling.
haven::read_dta
read_dta(file, id = NULL, filename = NULL, doi = NULL, .name_repair = "unique")
A STATA file.
An identifier of the tibble, if omitted, defaults to the file name.
An import file name.
An optional document object identifier.
Defaults to "unique" See tibble::as_tibble for details.
"unique"
tibble::as_tibble
A tibble.
Variable labels are stored in the "label" attribute of each variable. It is not printed on the console, but the RStudio viewer will show it.
`write_sav()` returns the input `data` invisibly.
`read_dta()` reads both `.dta` files.
The funcion is not yet tested.
Other import functions: pull_survey(), read_rds(), read_spss(), read_surveys(), subset_save_surveys()
pull_survey()
read_rds()
read_spss()
read_surveys()
subset_save_surveys()
# NOT RUN { path <- system.file("examples", "iris.dta", package = "haven") read_dta(path) # }
Run the code above in your browser using DataLab