Select columns from the active metadata component. When rows are active, selects from row_data. When columns are active, selects from col_data. Cannot select when matrix is active.
Usage
# S3 method for class 'tidymatrix'
select(.data, ...)Examples
library(dplyr, warn.conflicts = FALSE)
tm <- tidymatrix(big5_responses, big5_respondents, big5_items)
tm |>
activate(rows) |>
select(respondent_id, age, country)
#> # A tidymatrix: 400 x 30 matrix
#> # Active: rows
#> #
#> # Row data: 400 rows x 3 columns
#> # Column data: 30 rows x 5 columns
#> #
#> # Active data (rows):
#> respondent_id age country
#> 1 R001 52 EE
#> 2 R002 32 FI
#> 3 R003 66 EE
#> 4 R004 42 EE
#> 5 R005 48 FI
#> 6 R006 62 EE