rct: 2D rectangle vectors

Description Usage Arguments Value Examples

View source: R/rct.R

Description

2D rectangle vectors

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
rct(
  xmin = double(),
  ymin = double(),
  xmax = double(),
  ymax = double(),
  crs = wk_crs_auto()
)

as_rct(x, ...)

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

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

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

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

Value

A vector along the recycled length of bounds.

Examples

1
rct(1, 2, 3, 4)

wk documentation built on March 16, 2021, 5:11 p.m.