Learn R Programming

Rz (version 0.9-1)

rzAddItem: Add a variable to a dataset

Description

Add a variable to a dataset

Usage

rzAddItem(item, name = as.character(substitute(item)), data.set.name = NULL, description = name, measurement = c("auto", "nominal", "ordinal", "interval", "ratio"), overwrite = FALSE, ask = FALSE)

Arguments

item
an item object or a variable such as factor or numeric.
name
character: the variable name.
data.set.name
character: a name of a dataset in Rz. NULL means the current dataset.
description
character: the variable label.
measurement
character: measurement of the variable.
overwrite
logical: if TRUE will overwrite an existing variable.
ask
logical: confirm execution if TRUE.

See Also

rzAddData, rzReloadData