Get or modify pedigree labels
Functions for getting or changing the ID labels of pedigree members.
relabel(x, new, old = labels(x), reorder = FALSE) ## S3 method for class 'ped' labels(object, ...) ## S3 method for class 'list' labels(object, ...)
x |
A |
new, old |
Character vectors (or coercible to character) of the same
length. ID labels in |
reorder |
A logical. If TRUE, |
object |
A |
... |
Not used |
labels()
returns a character vector containing the ID labels of all
pedigree members. If the input is a list of ped objects, the output is a list
of character vectors.
relabel()
returns ped
object similar to the input except for the
labels.
Magnus Dehli Vigeland
x = nuclearPed() x labels(x) relabel(x, new = "girl", old = 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.