Description Usage Arguments Examples
View source: R/DictionaryStata.R
This function creates a .txt data dictionary from a Stata .dta read into R using the foreign package. It writes the variable labels and value labels stored as attributes within the R data object to an external file.
| 1 | DictionaryStata(x, file = "DataDictionary.txt")
 | 
| x | A dataframe read in using the "read.dta()" command from the foreign package. | 
| file | The file name and location to which the data dictionary should be written. Defaults to "DataDictionary.txt" in the current working directory. | 
| 1 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.