import_DF {eatGADS} | R Documentation |
Import R data.frame
Description
Function to import a data.frame
object for use in eatGADS
while extracting value labels from factors.
Usage
import_DF(df, checkVarNames = TRUE)
Arguments
df |
A |
checkVarNames |
Should variable names be checked for violations of |
Details
Factors are integers with labeled variable levels. import_DF
extracts these labels and stores them in a separate meta data data.frame.
See import_spss
for detailed information.
Value
Returns a list with the actual data dat
and a data frame with all meta information in long format labels
.
Examples
dat <- import_DF(iris, checkVarNames = FALSE)
# Inspect Meta data
extractMeta(dat)
# Extract Data
dat <- extractData(dat, convertLabels = "character")
[Package eatGADS version 1.1.0 Index]