Learn R Programming

eatGADS (version 1.1.1)

createVariable: Create a variable.

Description

Create an empty variable as part of a GADSdat object.

Usage

createVariable(GADSdat, varName, checkVarName = TRUE)

Value

Returns a GADSdat.

Arguments

GADSdat

GADSdat object imported via eatGADS.

varName

Name of the variable to be cloned.

checkVarName

Logical. Should varName be checked by checkVarNames?

Examples

Run this code
# create a new variable
pisa_new <- createVariable(pisa, varName = "new_variable")

Run the code above in your browser using DataLab