Learn R Programming

RSDA (version 2.0.8)

mean.sym.data.table: Symbolic Mean

Description

This function compute the symbolic mean

Usage

# S3 method for sym.data.table
mean(x, method = c("centers", "interval", "modal"),
  trim = 0, na.rm = F, ...)

Arguments

x

The symbolic variable.

method

The method to be use.

trim

As in R mean function.

na.rm

As in R mean function.

...

As in R mean function.

Value

Return a real number.

References

Billard L. and Diday E. (2006). Symbolic data analysis: Conceptual statistics and data mining. Wiley, Chichester.

Rodriguez, O. (2000). Classification et Modeles Lineaires en Analyse des Donnees Symboliques. Ph.D. Thesis, Paris IX-Dauphine University.

Examples

Run this code
# NOT RUN {
data(example3)
sym.data<-example3
mean(sym.data[,1])
mean(sym.data[,2])
mean(sym.data[,2], method='interval')
mean(sym.data[,3], method='modal')

# }

Run the code above in your browser using DataLab