Skip to contents

Get Information

Usage

get_info(stimuli, ..., .rownames = "id")

Arguments

stimuli

list of stimuli

...

column names to return

.rownames

whether to return a table with no rownames (NULL), rownames from the list item names (NA), or as a new column (the column name as a string)

Value

a data frame or vector of the info

See also

Other info: add_info(), compare(), get_point(), height(), metrics(), rename_stim(), width()

Examples

stimuli <- demo_stim() |>
  add_info(project = "test", gender = c("F", "M"))

get_info(stimuli)
#> # A tibble: 2 × 6
#>   id      project gender width height   tem
#>   <chr>   <chr>   <chr>  <int>  <int> <int>
#> 1 f_multi test    F        500    500   189
#> 2 m_multi test    M        500    500   189
get_info(stimuli, "gender")
#> f_multi m_multi 
#>     "F"     "M"