split: Utility functions

Description Usage Arguments Details Value Author(s)

Description

Divide a Spectra* object into Groups

Usage

1
split(x, f, drop = FALSE, ...)

Arguments

x

vector or data frame containing values to be divided into groups.

f

a "factor" in the sense that as.factor(f) defines the grouping, or a list of such factors in which case their interaction is used for the grouping.

drop

logical indicating if levels that do not occur should be dropped (if f is a factor or a list).

...

further potential arguments passed to methods.

Details

This is an adaptation of the split function in the base package.

Value

A list of objects of same class as x.

Author(s)

Pierre Roudier pierre.roudier@gmail.com


pierreroudier/specstore documentation built on May 25, 2019, 6:09 a.m.