load_stim: Load image set

View source: R/load_stim.R

load_stimR Documentation

Load image set

Description

Load image sets as a stimlist, ready for processing with webmorphR functions. See Details below for citation links.

Usage

load_stim(
  set = c("neutral_front", "smiling_front", "3dsk", "composite", "canada", "lisa",
    "zoom", "rainbow"),
  pattern = NULL
)

load_stim_canada(pattern = NULL)

load_stim_london(pattern = NULL)

load_stim_neutral(pattern = NULL)

load_stim_zoom(pattern = NULL)

load_stim_smiling(pattern = NULL)

load_stim_composite(pattern = NULL)

load_stim_lisa(pattern = NULL)

load_stim_rainbow(pattern = NULL)

load_stim_3dsk(pattern = NULL)

Arguments

set

name of the image set

pattern

Vector of patterns to use to search for files, or a vector of image indices

Details

Value

a list with class stimlist

Examples

# loads the first 5 images in the set
stim <- load_stim("rainbow", 1:5)

# loads all images with 3 digits and m
canada_male <- load_stim("canada", "[0-9]{3}m")

debruine/webmorphR.stim documentation built on June 17, 2022, 11:43 p.m.