prep_for_pt2cell: Prepare inputs for point_to_cell

View source: R/helpers.R

prep_for_pt2cellR Documentation

Prepare inputs for point_to_cell

Description

Sets up a variety of possible input objects for h3jsr::point_to_cell().

Usage

prep_for_pt2cell(input = NULL)

## S3 method for class 'sf'
prep_for_pt2cell(input = NULL)

## S3 method for class 'sfc'
prep_for_pt2cell(input = NULL)

## S3 method for class 'sfg'
prep_for_pt2cell(input = NULL)

## S3 method for class 'matrix'
prep_for_pt2cell(input = NULL)

## S3 method for class 'data.frame'
prep_for_pt2cell(input = NULL)

## S3 method for class 'numeric'
prep_for_pt2cell(input = NULL)

Arguments

input

sf, sfc or sfg POINT/MULTIPOINT object, data frame or matrix. Data frames or matrices must have x, y coordinates in their first two columns. WGS84 input is assumed in all cases.

Value

matrix representation of supplied coordinates.


obrl-soil/h3jsr documentation built on Jan. 27, 2024, 4:33 a.m.