vector_to_kinpair: Convert vector of kin separation distances to 'KinPairData'...

Description Usage Arguments Value See Also Examples

View source: R/import_kinpairs.R

Description

Function takes at minimum a (numeric) vector of distances between related kinpairs, and returns a KinPairData object. Optional parameters can assign kinship and lifestage values to the returned object.

Usage

1

Arguments

vect

vector of kinpair distances

kinship

character or character vector containing kinship categories of kinpairs

lifestage

character or character vector containing lifestages of kinpairs

Value

returns valid KinPairData object.

See Also

Other import_functions: csv_to_kinpair(), df_to_kinpair(), read_kindata(), tsv_to_kinpair()

Examples

1
vector_to_kinpair(1:10, "FS", "immature")

kindisperse documentation built on July 28, 2021, 5:09 p.m.