Add a variable to a dataset

Share:

Description

Add a variable to a dataset

Usage

1
2
3
4
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.

Author(s)

Masahiro Hayashi

See Also

rzAddData, rzReloadData