Learn R Programming

wk (version 0.9.4)

wk_handle_slice.data.frame: Handle specific regions of objects

Description

Handle specific regions of objects

Usage

# S3 method for data.frame
wk_handle_slice(handleable, handler, from = NULL, to = NULL, ...)

wk_handle_slice( handleable, handler = wk_writer(handleable), from = NULL, to = NULL, ... )

# S3 method for default wk_handle_slice( handleable, handler = wk_writer(handleable), from = NULL, to = NULL, ... )

Value

A subset of handleable

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.

from

1-based index of the feature to start from

to

1-based index of the feature to end at

...

Passed to the wk_handle() method.

Examples

Run this code
wk_handle_slice(xy(1:5, 1:5), wkt_writer(), from = 3, to = 5)
wk_handle_slice(
  data.frame(let = letters[1:5], geom = xy(1:5, 1:5)),
  wkt_writer(),
  from = 3, to = 5
)

Run the code above in your browser using DataLab