Learn R Programming

wk (version 0.9.4)

rct: 2D rectangle vectors

Description

2D rectangle vectors

Usage

rct(
  xmin = double(),
  ymin = double(),
  xmax = double(),
  ymax = double(),
  crs = wk_crs_auto()
)

as_rct(x, ...)

# S3 method for wk_rct as_rct(x, ...)

# S3 method for matrix as_rct(x, ..., crs = NULL)

# S3 method for data.frame as_rct(x, ..., crs = NULL)

Value

A vector along the recycled length of bounds.

Arguments

xmin, ymin, xmax, ymax

Rectangle bounds.

crs

A value to be propagated as the CRS for this vector.

x

An object to be converted to a rct().

...

Extra arguments passed to as_rct().

Examples

Run this code
rct(1, 2, 3, 4)

Run the code above in your browser using DataLab