quantile.nifti: Sample Quantiles

View source: R/quantile.nifti.R

quantile.niftiR Documentation

Sample Quantiles

Description

Computes sample quantiles for an image, with the option of a mask.

Usage

## S3 method for class 'nifti'
quantile(x, ..., mask)

## S3 method for class 'anlz'
quantile(x, ..., mask)

Arguments

x

Object of class nifti

...

Arguments passed to quantile

mask

object to subset the image. If missing, then all values of the image are used

Value

Output of quantile

Examples

img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
quantile(img, mask = mask)

neurobase documentation built on Oct. 23, 2022, 5:05 p.m.