is_assigned {nexus} | R Documentation |
Grouped Data
Description
Retrieve the (reference) groups to which the observations belong.
Usage
is_assigned(object)
any_assigned(object)
all_assigned(object)
## S4 method for signature 'ReferenceGroups'
is_assigned(object)
## S4 method for signature 'ReferenceGroups'
any_assigned(object)
## S4 method for signature 'ReferenceGroups'
all_assigned(object)
Arguments
object |
A grouped R object. |
Value
-
is_assigned()
returns alogical
vector specifying whether or not an observation belongs to a group. -
any_assigned()
returns anlogical
scalar specifying if any observation belongs to a group. -
all_assigned()
returns anlogical
scalar specifying if all observations belong to a group.
Author(s)
N. Frerebeau
See Also
Other grouping methods:
group()
,
group_names()
,
group_split()
,
group_subset()
Examples
## Data from Aitchison 1986
data("slides")
## Coerce to compositional data
coda <- as_composition(slides, groups = 2)
## Grouping metadata
group_levels(coda)
group_names(coda)
group_indices(coda)
group_rows(coda)
group_n(coda)
group_size(coda)
[Package nexus version 0.6.0 Index]