Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wk_handle.data.frame

Use data.frame with wk


Description

Use data.frame with wk

Usage

## S3 method for class 'data.frame'
wk_handle(handleable, handler, ..., .env = parent.frame())

## S3 method for class 'data.frame'
wk_writer(handleable, ...)

## S3 method for class 'data.frame'
wk_crs(x)

## S3 method for class 'data.frame'
wk_set_crs(x, crs)

## S3 method for class 'data.frame'
wk_restore(handleable, result, ...)

## S3 method for class 'tbl_df'
wk_restore(handleable, result, ...)

## S3 method for class 'data.frame'
wk_translate(handleable, to, ..., .env = parent.frame())

## S3 method for class 'tbl_df'
wk_translate(handleable, to, ..., .env = parent.frame())

## S3 method for class 'sf'
wk_translate(handleable, to, ...)

## S3 method for class 'sf'
wk_restore(handleable, result, ...)

Arguments

handleable

A geometry vector (e.g., wkb(), wkt(), xy(), rct(), or sf::st_sfc()) for which wk_handle() is defined.

handler

A wk_handler object.

...

Passed to the wk_handle() method.

.env

Passed to getS3method(), which is used to find the column in a data.frame() for which a wk_handle() method is defined.

x

An objects whose "crs" attribute is used to carry a CRS.

crs

An object that can be interpreted as a CRS

result

The result of a filter operation intended to be a transformation.

to

A prototype object.

Examples

wk_handle(data.frame(a = wkt("POINT (0 1)")), wkb_writer())
wk_translate(wkt("POINT (0 1)"), data.frame(col_name = wkb()))
wk_translate(data.frame(a = wkt("POINT (0 1)")), data.frame(wkb()))

wk

Lightweight Well-Known Geometry Parsing

v0.4.1
MIT + file LICENSE
Authors
Dewey Dunnington [aut, cre] (<https://orcid.org/0000-0002-9415-4582>), Edzer Pebesma [aut] (<https://orcid.org/0000-0001-8049-7069>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.