clean_dta | R Documentation |
This function deletes all attributes from dataframes, especially those imported from stata. Additionally, it converts empty character cells to NA.
clean_dta(df)
df |
The dataframe, typically a file imported from stata. |
A datafame without attributes and all empty character cells ("") are converted to NA.
# needs sjlabelled and haven packages installed clean_dta(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.