setData: Set data and key variables

setDataR Documentation

Set data and key variables

Description

Sets the objects slot @data and slot @key_name and makes sure that the key variable exists and is valid.

Usage

setData(object, ...)

## S4 method for signature 'AnalysisAspect'
setData(
  object,
  data,
  key_name = NULL,
  key_prefix = "id",
  meta_names = character(0),
  verbose = TRUE
)

## S4 method for signature 'Analysis'
setData(
  object,
  data,
  key_name = NULL,
  key_prefix = "id",
  meta_names = character(0),
  verbose = TRUE
)

Arguments

object

Any object for whose class a method has been defined.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Details

If key_name is NULL the key variable is constructed as a combination of the input data.frames rownames and the string provided with key_prefix. If the the datas rownames are NULL or contain "" the rownumbers are used instead. The newly constructed key variable is named data_ids.

Value

The input object.


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.