import_DF: Import R 'data.frame'

View source: R/import_DF.R

import_DFR 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 data.frame.

checkVarNames

Should variable names be checked for violations of SQLite and R naming rules?

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")


eatGADS documentation built on Oct. 9, 2024, 5:09 p.m.