| validatePed | R Documentation |
Validate the internal pedigree structure. The input may be either a (possibly
malformed) ped() object, or its defining vectors id, fid, mid, sex.
validatePed(
x = NULL,
id = x$ID,
fid = NULL,
mid = NULL,
sex = x$SEX,
famid = x$FAMID,
fidx = x$FIDX,
midx = x$MIDX
)
x |
A |
id |
A character (or coercible to character) of individual ID labels. |
fid, mid |
Vectors of the same length as |
sex |
A numeric of the same length as |
famid |
A character string. Default: An empty string. |
fidx, midx |
Integer vectors of parental indices (for internal use). |
If no errors are detected, the function returns NULL invisibly. Otherwise, messages describing the errors are printed to the screen and an error is raised.
x = nuclearPed()
validatePed(x)
# Various errors
# validatePed(id = c(1,2), fid = c(2,0), mid = c(0,1), sex = c(1,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.