lengthWidthRatio: Length-Width-Ratio

View source: R/lengthWidthRatio.R

lengthWidthRatioR Documentation

Length-Width-Ratio

Description

This function calculates the length-width-ratio for SpatialPolygonsDataFrame objects. The length-width vectors for the ratio are computed by a principal component analysis according to YI & MARSHALL (2000)

Usage

lengthWidthRatio(spdf, cores = 1, quiet = TRUE)

Arguments

spdf

SpatialPolygonsDataFrame input

cores

number of cores for parallel processing. Default: 1 (sequential)

quiet

no outputs in console. Default: TRUE

Value

data.table containing the ID field and a column (ratio) with length-width-ratio

Note

  • for the principal component analysis the princomp function is used

  • SpatialPolygonsDataFrame input must have an ID field with unique numbers

  • YI, W.& S. MARSHALL (2000): Principal component analysis in application to object orientation. Geo-spatial Information Science, 3(3), 76-78.


ggRaver/Lslide documentation built on April 8, 2022, 7:14 a.m.