View source: R/lengthWidthRatio.R
lengthWidthRatio | R Documentation |
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)
lengthWidthRatio(spdf, cores = 1, quiet = TRUE)
spdf |
SpatialPolygonsDataFrame input |
cores |
number of cores for parallel processing. Default: 1 (sequential) |
quiet |
no outputs in console. Default: TRUE |
data.table containing the ID field and a column (ratio) with length-width-ratio
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.