Learn R Programming

betapart (version 1.6)

qhull.opt: Specifying control Values for convexhull volume estimation

Description

Set the default value to use inside the functional.betapart.core and functional.betapart.pairwise functions. It defined the options to use with the convhulln fonction.

Usage

qhull.opt(conv1 = "QJ", conv2 = NULL)

Value

A named list of two elements.

Arguments

conv1

A character vector specifying qhull options.

conv2

A character vector specifying qhull options to use if the internal computation of convexhull volumes generates an error. By default (NULL) NA is returned.

Details

conv1 defined options that will be use systematically when calling convhulln to estimate the convexhull volume of the intersection, while conv2 whill be used only if the first call to convhulln would have generated an error. For the complete list of possible options see For the list of options see http://www.qhull.org/html/qh-optq.htm. By default, no option are passed which would generates NA if internal error. Setting one of the two elements to "QJ" can solve different issues with very close numerical estimation (difference lower than 1e-4 in our tests).

See Also

inter_rcdd, inter_geom, convhulln.

Examples

Run this code
if (FALSE) qhull.opt()
qhull.opt(conv1 = 'QJ')
qhull.opt(conv1 = "Qt", conv2 = 'QJ')

Run the code above in your browser using DataLab