Provides a faster version of the kinship2::makefamid function if sourced using Rcpp::sourceCpp.
It also provides a new implementation and quite different implementation based largely on C++
called makefamid_new. You can try the functions by calling
download.file("https://gist.githubusercontent.com/boennecd/d42fc0ced67033c222ddc8c95945af00/raw/makefamid-fast.cpp",
src_file <- paste0(tempfile(), ".cpp"))
Rcpp::sourceCpp(src_file)