methods.units {spatstat} | R Documentation |
Methods for class "units"
.
## S3 method for class 'units' print(x, ...) ## S3 method for class 'units' summary(object, ...) ## S3 method for class 'units' rescale(X,s) ## S3 method for class 'units' compatible(A,B, ..., coerce=TRUE)
x,X,A,B,object |
Objects of class |
s |
Conversion factor: the new units are |
... |
Other arguments.
For |
coerce |
Logical. If |
These are methods for the generic functions
print
, summary
, rescale
and compatible
for the class "units"
.
An object of class "units"
represents a unit of length.
The print
method prints a description of the unit of length,
and the summary
method gives a more detailed description.
The rescale
method changes the unit of length by rescaling it.
The compatible
method tests whether two or more units of length
are compatible.
For print.units
the value is NULL
.
For summary.units
the value is an object of class
summary.units
(with its own print method).
For rescale.units
the value is another object of class "units"
.
For compatible.units
the result is logical.
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz