boost: Cast a sfc object as a BoostObject

Description Usage Arguments Value Examples

Description

boost creates a BoostObject from a sfc or VeloxRaster object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
boost(x, ...)

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

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

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

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

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

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

## S3 method for class '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

1
2
3
4
## Make sfc_POINT
sfc <- sf::st_sfc(sf::st_point(c(0,1)))
## Cast to BoostPoints
boostPoints <- boost(sfc)

velox documentation built on May 2, 2019, 6:01 a.m.