powered by
Functions for getting or changing the ID labels of pedigree members.
relabel(x, new, old = labels(x))# S3 method for ped labels(object, ...)
# S3 method for ped labels(object, ...)
A ped object.
ped
Character vectors (or coercible to character) of the same length. ID labels in old are replaced by those in new.
old
new
A ped object
Not used
labels() returns a character vector containing the ID labels of all pedigree members.
labels()
relabel() returns ped object similar to the input except for the labels.
relabel()
ped()
# NOT RUN { x = nuclearPed(1) x labels(x) relabel(x, new = "girl", old = 3) # }
Run the code above in your browser using DataLab