Learn R Programming

velox (version 0.2.0)

boost: Cast a sfc object as a BoostObject

Description

boost creates a BoostObject from a sfc or VeloxRaster object.

Usage

boost(x, ...)

# S3 method for sfc_MULTIPOLYGON boost(x, ...)

# S3 method for sfc_POLYGON boost(x, ...)

# S3 method for sfc_MULTILINESTRING boost(x, ...)

# S3 method for sfc_LINESTRING boost(x, ...)

# S3 method for sfc_MULTIPOINT boost(x, ...)

# S3 method for sfc_POINT boost(x, ...)

# S3 method for VeloxRaster boost(x, box = FALSE, ...)

Arguments

x

An sfc object.

...

Currently not used.

box

Boolean. If TRUE and x is a VeloxRaster object, returns a BoxGrid instead of a PointGrid.

Value

A BoostObject object.

Examples

Run this code
# NOT RUN {
## Make sfc_POINT
sfc <- sf::st_sfc(sf::st_point(c(0,1)))
## Cast to BoostPoints
boostPoints <- boost(sfc)

# }

Run the code above in your browser using DataLab