dim.dist | R Documentation |
Returns NULL for the dimensions of a distance object.
## S3 method for class 'dist'
dim(x)
x |
object of class |
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.
NULL
Sarah Goslee
data(graze)
dim(dist(graze))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.