| label {validate} | R Documentation |
A short (typically two or three word) description of a rule.
label(x, ...) label(x) <- value ## S4 method for signature 'rule' label(x, ...) ## S4 replacement method for signature 'rule,character' label(x) <- value ## S4 method for signature 'expressionset' label(x, ...) ## S4 replacement method for signature 'expressionset,character' label(x) <- value
x |
and R object |
... |
Arguments to be passed to other methods |
value |
Value to set |
A character vector.
Other expressionset-methods:
as.data.frame,expressionset-method,
as.data.frame(),
created(),
description(),
meta(),
names<-,rule,character-method,
origin(),
plot,validator-method,
summary(),
variables(),
voptions()
# retrieve properties v <- validator(turnover > 0, staff.costs>0) # number of rules in v: length(v) # per-rule created(v) origin(v) names(v) # set properties names(v)[1] <- "p1" label(v)[1] <- "turnover positive" description(v)[1] <- " According to the official definition, only positive values can be considered valid turnovers. " # short description is also printed: v # print all info for first rule v[[1]] # retrieve properties v <- validator(turnover > 0, staff.costs>0) # number of rules in v: length(v) # per-rule created(v) origin(v) names(v) # set properties names(v)[1] <- "p1" label(v)[1] <- "turnover positive" description(v)[1] <- " According to the official definition, only positive values can be considered valid turnovers. " # short description is also printed: v # print all info for first rule v[[1]]