Learn R Programming

fsr (version 1.0.0)

create_empty_pgeometry: Creation of an empty pgeometry object

Description

This function builds an empty pgeometry object of a specific type.

Usage

create_empty_pgeometry(type)

Arguments

type

A character value indicating the data type of the pgeometry object. It can be either "PLATEAUPOINT", "PLATEAULINE" or "PLATEAUREGION".

Value

A pgeometry object.

Details

The create_empty_pgeometry creates a new pgeometry object with no components. To add new components to this object, you should use spa_add_component. The components added to this object must be of same type of the empty pgeometry object.

Examples

Run this code
# NOT RUN {
# Creating an Empty Plateau Point object
empty_plateau_point <- create_empty_pgeometry("PLATEAUPOINT")

# Creating an Empty Plateau Line object
empty_plateau_line <- create_empty_pgeometry("PLATEAULINE")

# Creating an Empty Plateau Region object
empty_plateau_region <- create_empty_pgeometry("PLATEAUREGION")

# }

Run the code above in your browser using DataLab