Learn R Programming

psda (version 1.4.0)

psim: Polygonal symbolic data simulation

Description

Simulate a polygonal variable with one or more individuals.

Usage

psim(n, vertices)

Arguments

n

number of simulated polygons.

vertices

number of vertex of the polygon.

Value

A list of polygons.

Details

The argument radius should have all values greater than zero. Otherwise, we cannot construct the polygons that compose the symbolic polygonal random variable. Besides, the size of the center vector should be equal to range vector.

Examples

Run this code
# NOT RUN {
number_polygons <- 10
psim(number_polygons, 4) 
# }

Run the code above in your browser using DataLab