Description Usage Arguments Examples
View source: R/DictionarySPSS.R
This function creates a .txt data dictionary from an SPSS .sav file 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 | DictionarySPSS(x, file = "DataDictionary.txt")
|
x |
A dataframe read in using the "read.spss()" command from the foreign package. Must have "to.data.frame=TRUE" and works best if "use.value.labels=FALSE" |
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.