groups {nexus} | R Documentation |
Working With Groups
Description
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 signature 'CompositionMatrix'
is_assigned(x)
## S4 method for signature 'LogRatio'
is_assigned(x)
## S4 method for signature 'OutlierIndex'
is_assigned(x)
## S4 method for signature 'CompositionMatrix'
any_assigned(x)
## S4 method for signature 'LogRatio'
any_assigned(x)
## S4 method for signature 'OutlierIndex'
any_assigned(x)
## S4 method for signature 'CompositionMatrix'
get_groups(x)
## S4 method for signature 'LogRatio'
get_groups(x)
## S4 method for signature 'OutlierIndex'
get_groups(x)
## S4 replacement method for signature 'CompositionMatrix'
set_groups(x) <- value
Arguments
x |
An object from which to get or set |
value |
A possible value for the |
Details
See vignette("nexus")
.
Value
-
set_groups()
returns an object of the same sort asx
with the new group names assigned. -
get_groups()
returns acharacter
vector giving the group names ofx
. -
any_assigned()
returns alogical
scalar specifying whether or notx
has groups. -
is_assigned()
returns alogical
vector specifying whether or not an observation belongs to a group.
Author(s)
N. Frerebeau
See Also
Other mutators:
identifiers
,
samples
,
split()
,
subset()
,
totals
[Package nexus version 0.2.0 Index]