dim.dist {ecodist} | R Documentation |
Dimension of a distance object
Description
Returns NULL for the dimensions of a distance object.
Usage
## S3 method for class 'dist'
dim(x)
Arguments
x |
object of class |
Details
The spdep package overwrites the base R behavior of dim.dist() to return c(n, n) where n is the size of the full matrix. The base R behavior returns NULL. This function restores base R behavior within ecodist, because otherwise spdep being loaded breaks ecodist functionality.
Value
NULL
Author(s)
Sarah Goslee
Examples
data(graze)
dim(dist(graze))
[Package ecodist version 2.1.3 Index]