read_dta | R Documentation |
This is a wrapper around haven::read_dta
with some exception handling.
read_dta(file, id = NULL, doi = NULL, .name_repair = "unique")
file |
A STATA file. |
id |
An identifier of the tibble, if omitted, defaults to the file name without its extension. |
doi |
An optional document object identifier. |
.name_repair |
Defaults to |
'read_dta()' reads both '.dta' files.
The funcion is not yet tested.
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.
Other import functions:
pull_survey()
,
read_csv()
,
read_rds()
,
read_spss()
,
read_surveys()
path <- system.file("examples", "iris.dta", package = "haven")
read_dta(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.