Skip to contents

Extract a single column from the active metadata component as a vector.

Usage

# S3 method for class 'tidymatrix'
pull(.data, var = -1, ...)

Arguments

.data

A tidymatrix object

var

Column name to extract (can be unquoted)

...

Not used

Value

A vector containing the column values

Examples

library(dplyr, warn.conflicts = FALSE)
tm <- tidymatrix(big5_responses, big5_respondents, big5_items)

tm |>
  activate(columns) |>
  pull(trait) |>
  table()
#> 
#>     Agreeableness Conscientiousness      Extraversion       Neuroticism 
#>                 6                 6                 6                 6 
#>          Openness 
#>                 6