wk_handle_slice: Handle specific regions of objects

View source: R/handle-slice.R

wk_handle_slice.data.frameR Documentation

Handle specific regions of objects

Description

Handle specific regions of objects

Usage

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

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

## Default S3 method:
wk_handle_slice(
  handleable,
  handler = wk_writer(handleable),
  from = NULL,
  to = NULL,
  ...
)

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.

Value

A subset of handleable

Examples

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
)


wk documentation built on Oct. 12, 2024, 1:07 a.m.