50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

wk (version 0.9.4)

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, ...)

# 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, ...)

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

# 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.

result

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

to

A prototype object.

Examples

Run this code
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