R: Use data.frame with wk

wk_handle.data.frame {wk} | R Documentation

## 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()))

[Package wk version 0.4.0 Index]