IQR: Inter-Quartile Range for arbitrary datasets

Description Usage Arguments Value Examples

Description

This is a generic function to compute the inter-quartile range of a dataset.

Usage

1
2
3
4
5
6
7
IQR(x, ...)

## S3 method for class 'numeric'
IQR(x, na.rm = FALSE, type = 7)

## S3 method for class 'mfData'
IQR(x, ...)

Arguments

x

Either a numeric vector or a tract.

na.rm

A boolean for removing missing values (default: FALSE). For numeric vector inputs only.

type

An integer selecting one of the many quantile algorithms, see quantile. For numeric vector inputs only.

validate

A boolean that specifies whether the input format should be checked (default: TRUE). For tract inputs only.

Value

A positive scalar representing the inter-quartile range of the input dataset.

Examples

1
2
3
4
IQR(1:10)
file <- system.file("extdata", "Case001_CST_Left.csv", package = "fdatractography")
cst_left <- read_tract(file)
IQR(cst_left)

astamm/fdatractography documentation built on May 12, 2019, 5:37 a.m.