ancestor_vectors_cpp {CKMRpop}R Documentation

Function to make a vector of all the ancestors of an individual out to n generations.

Description

This is a replacement for the R implementation of ancestor_vectors() which was too slow. This will get called from with a C function in which the pedigree has been assembled.

Arguments

sv

vector of sample indexes

nv

vector of names of all samples

Ped

pedigree struct

n

the number of generations. 0 = self, 1 = parent, 2 = grandparent, etc.


[Package CKMRpop version 0.1.3 Index]