zap_stata | R Documentation |
zap_stata()
removes all Stata dataset attributes from a data frame
created via haven::read_dta()
. This function is meant to cut down on
repetitive code associated with importing a DTA file when a CSV file is not
readily available. The name of this function is a nod to the
haven::zap_*()
functions.
zap_stata(df)
df |
A data frame. |
More specifically, zap_stata()
:
Removes any value labels and converts any tagged missing values to NA
.
Removes any variable labels or formats.
Removes the dataset label.
Removes any dataset notes.
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.