alienData: Formatting data and return an 'alienData' object

Description Usage Arguments Details Value Author(s)

View source: R/alienData.R

Description

alienData is used to check the data, if correct it returns an object of class alienData.

Usage

1
2
3
4
5
6
7
8
9
alienData(
  adjMat,
  traitFrom = NULL,
  traitTo = NULL,
  traitDistFrom = NULL,
  traitDistTo = NULL,
  phyloDistFrom = NULL,
  phyloDistTo = NULL
)

Arguments

adjMat

An adjancency matrix. The rows (From) species are influencing the column (To) species.

traitFrom

A data.frame containing the traits of the row (From) species.

traitTo

A data.frame containing the traits of the column (To) species.

traitDistFrom

A dist object containing the distance between pairs of traits of the row (From) species.

traitDistTo

A dist object containing the distance between pairs of traits of the column (To) species.

phyloDistFrom

A dist object containing phylogenetic distance between pairs of row (From) species.

phyloDistTo

A dist object containing phylogenetic distance between pairs of column (To) species.

Details

This function is essentially designed to make sure the names of all components match in the right order. The output of this function is at the basis of all the analyses implemented in the alien package.

Value

An object of class alienData is returned.

Author(s)

F. Guillaume Blanchet, Kevin Cazelles & Steve Vissault


TheoreticalEcosystemEcology/alienR documentation built on Dec. 25, 2021, 5:59 p.m.