tests/checksex.R

 library(sped)

 ped <- read.table("ped.txt", header = TRUE, stringsAsFactors = FALSE)
 ped <- as.matrix(ped)
 ped

 ped[5, 2:3] <- rev(ped[5, 2:3])
 ped

 gen <- c(goofy = 1)

 # should give error
 try(descent("spot", ped, gen, check.sex = TRUE))

Try the sped package in your browser

Any scripts or data that you put into this service are public.

sped documentation built on July 26, 2023, 5:13 p.m.