Select elements from objects with class "canregs"
, or "fbswicds"
cr_select.Rd
This function allows you to select specific elements from objects of class 'canregs', 'fbswicds', or 'asrs' based on provided indices, logical conditions, or expressions. The selected elements are returned while preserving the class of the input object.
Usage
cr_select(data, ..., index = names(data))
# S3 method for class 'canregs'
cr_select(data, ..., index = names(data))
# S3 method for class 'asrs'
cr_select(data, ..., index = names(data))
# S3 method for class 'fbswicds'
cr_select(data, ..., index = names(data))
# S3 method for class 'summaries'
cr_select(data, ..., index = names(data))
Arguments
- data
An object of class 'canregs', 'fbswicds', or 'asrs' from which elements will be selected.
- ...
Optional conditions or expressions used to filter elements within the list or data frame. Conditions are evaluated for each element of the input object.
- index
A vector of indices specifying the elements to select. This can be a character vector (matching element names), a numeric vector (specifying positions), or a logical vector (indicating inclusion).