Learn R Programming

RCALI (version 0.3.7)

crlistpoly: Create an object of class 'listpoly' from objects of class 'poly'

Description

Create an object of class "listpoly" from objects of class "poly"

Usage

crlistpoly(...)

Value

An object of class "listpoly" : a list where each component is a 'poly' object (see poly-class).

Arguments

...

objetcs of class "poly"

See Also

poly-class

Examples

Run this code
# A triangle:
a <- as.poly(matrix(c(2,2,2,3,3,3), ncol=2, byrow=TRUE))
# A square:
b <- as.poly(matrix(c(2.5,2,2.5,2.5,3,2.5,3,2), ncol=2, byrow=TRUE))
# The both:
 z <- crlistpoly(a,b)

Run the code above in your browser using DataLab