as.poiFile {rPorta}R Documentation

Coerce to poiFile object

Description

as.poiFile attempts to turn its argument into an poiFile object.

Usage

as.poiFile(v, hull=TRUE)

Arguments

v argument that should be turned into an poiFile object
hull determines whether the convex_hull or the convex_cone slot should be used

Details

Constructs an poiFile object consisting only of the points of the convex cone or the convex hull with the help of as.poi.

Value

Returns an poiFile object.

Author(s)

Robin Nunkesser Robin.Nunkesser@tu-dortmund.de

See Also

as.poi, "poiFile"

Examples

# (1,0,0), (0,1,0), and (0,0,1) as convex hull points
as.poiFile(diag(3))

# # (1,0,0), (0,1,0), and (0,0,1) as convex cone points
as.poiFile(diag(3),hull=FALSE)

[Package rPorta version 0.1-9 Index]