split {compositions}R Documentation

Spliting datasets in groups given by factors

Description

Each of the given scale levels has an associated norm, which is computed for each element by these functions.

Usage

## S3 method for class 'acomp':
split(x,f)
## S3 method for class 'rcomp':
split(x,f)
## S3 method for class 'aplus':
split(x,f)
## S3 method for class 'rplus':
split(x,f)
## S3 method for class 'rmult':
split(x,f)
          

Arguments

x a dataset or a single vector of some type
f a factor that defines the grouping or a list of factors

Value

a list of objects of the same type as x.

See Also

split

Examples

  data(SimulatedAmounts)
  split(acomp(sa.groups),sa.groups.area)

[Package compositions version 0.9-10 Index]