Learn R Programming

wk (version 0.3.4)

xy: 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 wk_xy as_xy(x, ..., dims = NULL)

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

# S3 method for 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

Run this code
# NOT RUN {
xy(1:5, 1:5)
xyz(1:5, 1:5, 10)
xym(1:5, 1:5, 10)
xyzm(1:5, 1:5, 10, 12)

# }

Run the code above in your browser using DataLab