Skip to contents

Retrieves or defines the sample names.

Usage

has_replicates(x)

get_samples(x)

set_samples(x) <- value

# S4 method for CompositionMatrix
has_replicates(x)

# S4 method for LogRatio
has_replicates(x)

# S4 method for OutlierIndex
has_replicates(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 the sample names of x.

  • has_replicates() returns a logical scalar.

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("manual").

See also

Other mutators: groups, subset(), totals

Author

N. Frerebeau