Skip to contents

Retrieves or defines the groups to which the observations belong.

Usage

has_groups(x)

get_groups(x)

set_groups(x) <- value

# S4 method for CompositionMatrix
has_groups(x)

# S4 method for LogRatio
has_groups(x)

# S4 method for OutlierIndex
has_groups(x)

# S4 method for CompositionMatrix
get_groups(x)

# S4 method for LogRatio
get_groups(x)

# S4 method for OutlierIndex
get_groups(x)

# S4 method for CompositionMatrix
set_groups(x) <- value

Arguments

x

An object from which to get or set groups.

value

A possible value for the groups of x.

Value

  • set_groups() returns an object of the same sort as x with the new group names assigned.

  • get_groups() returns the group names of x.

  • has_groups() returns a logical scalar.

Details

See vignette("nexus").

See also

Other mutators: samples, subset(), totals

Author

N. Frerebeau