hzar.doMorphoSets: Make hzar.obsData objects from scalar observations using...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/27-prepBernoulliTransform.R

Description

Perform a Bernoulli transform on a table of scalar traits of sampled individuals while using a separate table of localities.

Usage

1
hzar.doMorphoSets(traitNames, tDist, tDLocCol, tDDistCol, tValues, tVLocCol)

Arguments

traitNames

The columns of tValues to transform.

tDist

A data.frame with a column of locality identifiers and a column of locality distances. See manakinLocations for an example.

tDLocCol

The name of the column of tDist with locality identifiers.

tDDistCol

The name of the column of tDist with locality distances.

tValues

A data.frame of observed scalar traits of individuals. See manakinMorphological for an example.

tVLocCol

The name of the column of tValues with locality identifiers where the sample was taken.

Value

A list of hzar.obsData objects. The values of traitNames are used as names. The Bernoulli likelihood function is for each hzar.obsData object.

Author(s)

Graham Derryberry [email protected]

See Also

manakinLocations manakinMorphological hzar.plot.obsData

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(manakinMorphological);
data(manakinLocations);
mkn <-
  hzar.doMorphoSets("beard.length",
                    tDist=manakinLocations,
                    tDLocCol="LocalityID",
                    tDDistCol="distance",
                    tValues=manakinMorphological,
                    tVLocCol="Locality")
print(str(mkn));
hzar.plot.obsData(mkn$beard.length);

hzar documentation built on May 29, 2017, 8:45 p.m.