calcNetworkMetricsSummStats: AVERAGING NETWORK METRICS FUNCTION

View source: R/networkProperties.R

calcNetworkMetricsSummStatsR Documentation

AVERAGING NETWORK METRICS FUNCTION

Description

Calculates a set of summary statistical metrics on a data.table of network metrics per pixel, per group of a grouping variable (or several)

Usage

calcNetworkMetricsSummStats(
  DT,
  stats = c("mean", "sd", "cv", "median", "min", "max"),
  id.vars,
  measure.vars = NULL,
  na.rm = FALSE
)

Arguments

DT

is a data.table of variables on which the summary stats will be calculated

stats

is a list of summary statistics to calculate. Select from "mean", "sd", "cv", "median", "min", "max", where "cv" is the coefficient of variation

id.vars

character vector of grouping variable names

measure.vars

character vector variables to summarise. If NULL then all non id.vars are used

na.rm

is passed to summary statistics functions


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.