inspect_sav | R Documentation |
Function that returns dataframe with name, label, values, and value labels for all variables in an SPSS data file.
inspect_sav(path.or.data, describe = FALSE)
path.or.data |
Either a string indicating location of .sav file or a "labelled" dataframe already imported into R environment. |
describe |
Logical indicating whether to append descriptive information on each variable,
in addition to the SPSS metadata. (Calls |
# SPSS metadata will be blank, since it is an R dataset
library(haven)
write_sav(mtcars, "mtcars.sav")
inspect_sav("mtcars.sav", describe = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.