| methods.boxx | R Documentation |
Methods for class "boxx".
## S3 method for class 'boxx'
print(x, ...)
## S3 method for class 'boxx'
unitname(x)
## S3 replacement method for class 'boxx'
unitname(x) <- value
## S3 method for class 'boxx'
scale(x, center=TRUE, scale=TRUE)
x |
Object of class |
... |
Other arguments passed to |
value |
Name of the unit of length. See |
center, scale |
Arguments passed to |
These are methods for the generic functions
print, unitname,
unitname<- and scale
for the class "boxx" of multi-dimensional boxes.
The
print method prints a description of the box,
the unitname method extracts the name of the unit of
length in which the box coordinates are expressed, while the assignment method
for unitname assigns this unit name.
The scale method rescales each spatial coordinate of x.
For print.boxx the value is NULL.
For unitname.boxx an object of class "units".
For unitname<-.boxx and
scale.boxx the result is the updated "boxx" object x.
boxx,
is.boxx,
print,
unitname,
scale
B <- boxx(c(0,10),c(0,10),c(0,5),c(0,1), unitname=c("metre", "metres"))
B
is.boxx(B)
unitname(B)
# Northern European usage
unitname(B) <- "meter"
scale(B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.