The calculates moments of a distribution, i.e. mean, standard deviation, skew and kurtosis

# S4 method for numeric
moment(object, n = rep(1, length(object)),
  na.rm = T)

Arguments

object

a vector holding a time series

n

number of observations equal to length og object by default

na.rm

boolean whether to remove NAs, TRUE by default

...

any other arguments, i.e. x,n=rep(1,length(x)),na.rm=T

Value

a vector with the inter-annual variation each time step

Examples

# NOT RUN {
x=rlnorm(100)
moment(x)
# }