make.classes: make topographic index classes from a topographic index map

View source: R/make.classes.R

make.classesR Documentation

make topographic index classes from a topographic index map

Description

This function splits a dataset in n evenly distributed classes and calculates the number of elements of each class. It is very similar to hist(), but hist() does not always keep the number of breaks requested

Usage

make.classes(array,n)

Arguments

array

A numeric vector or matrix

n

Number of breaks

Value

The function returns a data matrix with 2 columns. Column breaks contains the upper limits of each class, while counts contains the number of elements

Author(s)

Wouter Buytaert, Imperial College London

See Also

topidx, topmodel


topmodel documentation built on Nov. 16, 2022, 9:08 a.m.