lhs.anv.add: Adds an ancillary value to a hullset

Description Usage Arguments Details Value See Also

Description

Add ancillary values to the points of a hullset, which can then be used as hull metrics

Usage

1
2
3
lhs.anv.add(lhs, id = NULL, k = NULL, r = NULL, a = NULL,
  s = NULL, hs.names = NULL, anv, anv.desc = NULL,
  overwrite = FALSE)

Arguments

lhs

A LoCoH-hullset object

id

The name(s) of individuals to export

k

The k value of hullsets to add an ancillary value to

r

The r value of hullsets to add an ancillary value to

a

The a value of hullsets to add an ancillary value to

s

The s value of hullsets to add an ancillary value to

hs.names

The name(s) of saved hullsets to export

anv

A vector, named list, or data frame with the same number of values as points

anv.desc

A character vector of descriptions

overwrite

Whether to overwrite existing ancillary values with the same names (T/F)

Details

This will add one or more ancillary values (columns) to the point locations in a LoCoH-hullset object. The name of the columns will be the name of the object passed (in the case where anv is a vector), the list element names (in the case of a named list), or column names (in the case of a data frame).

In other functions, you can sort (or filter) hulls based on ancillary values of the parent points using the hull metric 'anv' and passing another argument (called anv) set to the name of the ancillary value.

Value

A LoCoH-hullset object

See Also

lhs.iso.add


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