Internal functions to check for a valid analysis or slot names.
check.analysis(data, analyses, regex)check.slot(data, slot, allow.ntr = TRUE)
check.mode.slot(data, mode.slot, allow.ntr = TRUE)
Whether or not the given name is valid and unique for the grandR object
a grandR object
a regex to be matched to analysis names
interpret as regular expression
a slot name
whether to allow for the value "ntr" (and throw an error in case)
a mode.slot
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.