powered by
Set stimulus names in a stimlist
rename_stim( stimuli, new_names = NULL, prefix = "", suffix = "", pattern = NULL, replacement = NULL, ... )
A list of stimuli
Vector of new names - must be the same length as the stimlist
String to prefix to each name
String to append to each name
Pattern for gsub
Replacement for gsub
Additional arguments to pass on to base::gsub()
base::gsub()
A list of stimuli with the new names
Other info: add_info(), compare(), get_info(), get_point(), height(), metrics(), width()
add_info()
compare()
get_info()
get_point()
height()
metrics()
width()
# NOT RUN { demo_stim() |> rename_stim(prefix = "new_") |> names() # }
Run the code above in your browser using DataLab