R: Efficient point vectors

xy {wk} | R Documentation

## Efficient point vectors

### Description

Efficient point vectors

### Usage

    xy(x = double(), y = double())

    xyz(x = double(), y = double(), z = double())

    xym(x = double(), y = double(), m = double())

    xyzm(x = double(), y = double(), z = double(), m = double())

    xy_dims(x)

    as_xy(x, ...)

    ## S3 method for class 'wk_xy'
    as_xy(x, ..., dims = NULL)

    ## S3 method for class 'matrix'
    as_xy(x, ..., dims = NULL)

    ## S3 method for class 'data.frame'
    as_xy(x, ..., dims = NULL)

### Arguments

`x, y, z, m` | Coordinate values.
`...` | Passed to methods.
`dims` | A set containing one or more of `c("x", "y", "z", "m")`.

### Value

A vector of coordinate values.

### Examples

    xy(1:5, 1:5)
    xyz(1:5, 1:5, 10)
    xym(1:5, 1:5, 10)
    xyzm(1:5, 1:5, 10, 12)

[Package wk version 0.3.4 Index]