moments {spatialEco}R Documentation

moments

Description

Calculate statistical moments of a distribution

Usage

moments(x, plot = FALSE)

Arguments

x

numeric vector

plot

plot of distribution (TRUE/FALSE)

Value

A vector with the following values:

Author(s)

Jeffrey S. Evans jeffrey_evans@tnc.org

Examples

x <- runif(1000,0,100)
( d <- moments(x, plot=TRUE) )
( mode.x <- moments(x, plot=FALSE)[16] )
 

[Package spatialEco version 2.0-2 Index]