Skip to contents

Retrieves or defines the groups to which the observations belong.

Usage

any_assigned(x)

is_assigned(x)

get_groups(x)

set_groups(x) <- value

# S4 method for CompositionMatrix
is_assigned(x)

# S4 method for LogRatio
is_assigned(x)

# S4 method for OutlierIndex
is_assigned(x)

# S4 method for CompositionMatrix
any_assigned(x)

# S4 method for LogRatio
any_assigned(x)

# S4 method for OutlierIndex
any_assigned(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 a character vector giving the group names of x.

  • any_assigned() returns a logical scalar specifying whether or not x has groups.

  • is_assigned() returns a logical vector specifying whether or not an observation belongs to a group.

Details

See vignette("nexus").

See also

Other mutators: identifiers, samples, split(), subset(), totals

Author

N. Frerebeau