Skip to contents

Retrieves or defines the sample names.

Usage

any_replicated(x)

is_replicated(x)

get_samples(x)

set_samples(x) <- value

# S4 method for CompositionMatrix
is_replicated(x)

# S4 method for LogRatio
is_replicated(x)

# S4 method for OutlierIndex
is_replicated(x)

# S4 method for CompositionMatrix
any_replicated(x)

# S4 method for LogRatio
any_replicated(x)

# S4 method for OutlierIndex
any_replicated(x)

# S4 method for CompositionMatrix
get_samples(x)

# S4 method for LogRatio
get_samples(x)

# S4 method for OutlierIndex
get_samples(x)

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

Arguments

x

An object from which to get or set samples.

value

A possible value for the samples of x.

Value

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

  • get_samples() returns a character vector giving the sample names of x.

  • any_replicated() returns a logical scalar specifying whether or not x has replicated observations.

  • is_replicated() returns a logical vector specifying whether or not an observation is a replicate.

Details

In some situations, measurements may have been repeated (e.g. multiple chemical analyses on the same sample). The presence of repeated measurements can be specified by giving several observations the same sample name.

See vignette("nexus").

See also

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

Author

N. Frerebeau