Internal functions to check for a valid analysis or slot names.
Usage
check.analysis(data, analyses, regex)
check.slot(data, slot, allow.ntr = TRUE)
check.mode.slot(data, mode.slot, allow.ntr = TRUE)
Arguments
- data
a grandR object
- analyses
a regex to be matched to analysis names
- regex
interpret as regular expression
- slot
a slot name
- allow.ntr
whether to allow for the value "ntr" (and throw an error in case)
- mode.slot
a mode.slot
Value
Whether or not the given name is valid and unique for the grandR object
Details
A mode.slot is a mode followed by a dot followed by a slot name, or just a slot name. A mode is either total, new or old.