Learn R Programming

emuR (version 2.4.0)

randomise.segs: Randomise or Reverse items in a segment list

Description

Randomises or Reverses items in a segment list

Usage

randomise.segs(segs, rand = TRUE, bwd = FALSE)

Value

A segment list containing the original elements in random or reversed order. This is useful if the segment list is to be used as the source for a set of stimuli in a perception experiment.

Arguments

segs

An Emu segment list.

rand

If TRUE, randomise the order of the segment lists (default).

bwd

If TRUE, reverse the order of the segment list.

See Also

query

Examples

Run this code

data(vowlax)
## assumes a database called demo is available on your system and that
## the Emu system is installed. 

# all Phonetic vowels in the database
segs <- vowlax

# randomise the segment list
rsegs <- randomise.segs( segs )


Run the code above in your browser using DataLab