lxy.sval.get: Get s values from a LoCoH-xy object

Description Usage Arguments Details Value See Also

View source: R/lxy.sval.get.R

Description

Extracts the s-values from a LoCoH-xy object for a specified proportion of time-selected hulls

Usage

1
lxy.sval.get(lxy, ptsh, id = NULL)

Arguments

lxy

A LoCoH-xy object

id

The name(s) of individuals to extract values from

The

desired proportion of time-select hulls (0..1)

Details

This function extracts the s values from the individuals in a LoCoH-xy object. This can be useful if you want to select s values based on a consistent proportion of time-selected hulls.

s values are computed by lxy.ptsh.add by iteratively trying differet values of s for a desired proportion of time selected hulls. This function returns the corresponding value of s that generates the desired ptsh within a given threshhold (see lxy.ptsh.add). If no matching values of s were found, an empty vector will be returned for that list element. If more than one set of ptsh tables are found (i.e, lxy.ptsh.add was run more than once), only the first set of 's' values will be returned.

Value

A named list of s values, with one element per id.

See Also

lxy.ptsh.add; Vignette on locoh.lxy data class


tlocoh.dev documentation built on May 2, 2019, 5:20 p.m.