dim.dist: Dimension of a distance object

View source: R/dim.dist.R

dim.distR 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 dist

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


ecodist documentation built on Nov. 2, 2023, 6:01 p.m.