Description Usage Arguments Author(s) Examples
For each individual, remove kin based on treshold value (see Blouin 2003). Data comes from
software coancestry
(Jinliang Wang).
1 | throwoutKin(data, treshold)
|
data |
|
treshold |
|
Roman Lustrik, Maja Jelencic
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
kin <- read.table("./sandbox/RelatednessCI95.Txt", sep = ",")
animal <- kin[, c(2, 3, 6)]
names(animal) <- c("animal1", "animal2", "stat")
suppressMessages(rez <- throwoutKin(data = animal, treshold = 0.5))
str(rez)
length(rez$unique.animals) # number of unique animals
str(rez$cleaned.data) # structure of cleaned data
hist(rez$cleaned.data$stat) # histogram of stat values from cleaned data
# should all be below treshold
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.