Learn R Programming

eatGADS (version 1.0.0)

checkVarNames: Check names for SQLite conventions.

Description

Applies variable names changes to GADSdat or all_GADSdat objects.

Usage

checkVarNames(GADSdat)

Value

Returns the original object with updated variable names.

Arguments

GADSdat

GADSdat or all_GADSdat object imported via eatGADS.

Details

Illegal names in a SQLite data base include SQLite keywords (see sqlite_keywords) and names with a "." in it.

Examples

Run this code
# Change example data set (create an invalid variable name)
pisa2 <- changeVarNames(pisa, oldNames = "computer_age",
                        newNames = "computer.age")

pisa3 <- checkVarNames(pisa2)

Run the code above in your browser using DataLab