frameStratify: Arranges survey data into strata using k-means clustering

View source: R/flora_dynamics.R

frameStratifyR Documentation

Arranges survey data into strata using k-means clustering

Description

Data are stratified into 2-4 strata, then the largest number of strata are chosen where p<0.01. If none qualify, then the most significant division is chosen.

Usage

frameStratify(veg, mStrat = 4, sepSig = 0.001)

Arguments

veg

A dataframe listing plant species with columns describing crown dimensions using standardised names: veg, pN, spName, base, top, he, ht, wid, Site, sN

mStrat

Maximum number of strata

sepSig

p value to define significant stratum separation

Details

Strata are sorted by top height and appended to the original data

Value

Dataframe


pzylstra/frame_r documentation built on Nov. 12, 2023, 1:55 a.m.