Learn R Programming

wk (version 0.5.0)

wk_handle.data.frame: Use data.frame with wk

Description

Use data.frame with wk

Usage

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

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

# S3 method for data.frame wk_crs(x)

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

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

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

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

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

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

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

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

Run this code
# NOT RUN {
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()))

# }

Run the code above in your browser using DataLab