vector_to_kinpair {kindisperse} | R Documentation |
Convert vector of kin separation distances to KinPairData
class
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
vector_to_kinpair(vect, kinship = NULL, lifestage = NULL)
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
vector_to_kinpair(1:10, "FS", "immature")
[Package kindisperse version 0.10.2 Index]