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
ofx
.
Value
set_samples()
returns an object of the same sort asx
with the new sample names assigned.get_samples()
returns acharacter
vector giving the sample names ofx
.any_replicated()
returns alogical
scalar specifying whether or notx
has replicated observations.is_replicated()
returns alogical
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