Change labels of factors or labelled objects
relabel changes the labels of a factor or any object
that has a
relabel4 is an (internal) generic which is called by
to handle S4 objects.
1 2 3 4 5 6 7 8 9 10
## Default S3 method: relabel(x, ..., gsub = FALSE, fixed = TRUE, warn = TRUE) ## S3 method for class 'factor' relabel(x, ..., gsub = FALSE, fixed = TRUE, warn = TRUE) ## S4 method for signature 'item' relabel4(x, ...) # This is an internal method, see details. # Use relabel(x, \dots) for 'item' objects
An object with a
A sequence of named arguments, all of type character
a logical value; if TRUE,
a logical value, passed to
a logical value; if TRUE, a warning is issues if a a change of labels was unsuccessful.
This function changes the names or labels of
x according to the
gsub is FALSE, argument tags are the old
labels, the values are the new labels.
gsub is TRUE, arguments are substrings of the labels
that are substituted by the argument values.
relabel is S3 generic. If its first argument is an S4 object,
it calls the (internal)
relabel4 generic function.
x with new labels defined by the ... arguments.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.