Learn R Programming

fChange (version 2.1.0)

sdvar: Generic Function for Variance and Standard Deviation Computation

Description

Generic function to compute the variance and standard deviations. The default uses stats::var() and stats::sd().

Usage

sd(object, ...)

# S3 method for default sd(object, ...)

# S3 method for dfts sd(object, type = "pointwise", ...)

var(object, ...)

# S3 method for default var(object, ...)

# S3 method for dfts var(object, type = c("operator", "pointwise"), ...)

Value

Numeric(s) to explain the standard deviation / variance

Arguments

object

Object for computation of standard deviation or variance of the given data set.

...

Additional parameters for the particular extensions.

type

String to specify if an operator ('op') or pointwise ('pw') calculation is desired on the functional data.

See Also

Examples

Run this code
sd(1:10)
var(1:10)
sd(electricity, type = "pointwise")
var(electricity, type = "pointwise")
var(electricity, type = "operator")

Run the code above in your browser using DataLab