add_info: Add Information

View source: R/info.R

add_infoR Documentation

Add Information

Description

Add info with a data table that contains the info in either the same order as the stimulus list, or matching the stimuli item name with the column specified by .by.

Usage

add_info(stimuli, ..., .by = NULL)

Arguments

stimuli

list of stimuli

...

data table or named vectors of info to add

.by

the column to use to match info to stimuli names; leave NULL if the data are to be matched by order

Details

You can also add data as named vectors.

Value

list of stimuli with info added

See Also

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

Examples

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

stimuli$f_multi$info |> str()


webmorphR documentation built on June 2, 2022, 5:07 p.m.