get_dist: Spatial distance between individuals at a specific date

Description Usage Arguments Examples

Description

This function returns the spatial distance in kilometres between individual x and pedigree members at a specific date

Usage

1
get_dist(id, id2, evdat, evmat, map_dist)

Arguments

id

ID of individual for which a pedigree should be composed.

id2

ID of individual for which distance should be computed

evdat

A specific date in the format “Year-month-day”

evmat

Event matrix

dist_mat

A distance matrix

Examples

1
2
3
4
5
6
## Not run: 
attach(kh33::kh)
get_dist(40, grap_ped(40, df_ped), "1850-01-01", dist_mat = geo[["map_dist"]], evmat=evmat)
detach(kh33::kh)

## End(Not run)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.