Learn R Programming

EDFIR (version 1.0)

build.normalhull: build.normalhull

Description

Build a convex hull of the data in a data frame using convhulln.

Usage

build.normalhull(inputframe)

Arguments

inputframe
A data frame, containing isotopic measurements in data frames imported from files using build.isotopeframe.

Value

Return a $m \times d+1$ matrix $[A|b]$ representing the convex hull of the system of equations $Ax \leq -b$.

Details

Use the convhulln package to build a convex hull of the isotopic measurements given by the input data frame. The data frame is assumed to have the measurements presented one per row. If there are multiple species present in the data frame, they must be added as extra columns, and the order of the columns for each species must be the same.

See Also

convhulln

Examples

Run this code
## Not run: ## read in data from some files
## Not run: input <- build.isotopeframe("predfile", "preyfile")
## Not run: ## get the convex hull of the predator data
## Not run: hull <- build.normalhull(input$pred.frame)

Run the code above in your browser using DataLab