Learn R Programming

erpR (version 0.2.0)

create.mean: create ERP data frames with mean values from a series of data frames contained in an erplist.

Description

This function creates a new set of data frames from two sets of paired ERP data frames by averaging the values of the original sets.

Usage

create.mean(bases, numbers, outname = NULL, erplist = NULL, fileinfo = 1)

Arguments

bases
a vector of strings indicating the beginning of the names of the data frames containing the ERP data to be averaged.
numbers
the numbers of the subjects to be averaged.
outname
the base of the names of the returned data frames.
erplist
a list containing the ERP data frames specified in base and numbers.
fileinfo
a number indicating from which set of objects specified in the argument bases the information of the data frame is retrieved.

Value

A series of ERP data frames obtained by averaging the specified sets.

Details

For more information on fileinfo argument see Details section of import.erp.

See Also

create.diff

Examples

Run this code

data(ERPsets)

ERPsetsmean=create.mean(c("Exp1_word_subj", "Exp1_nonword_subj"), 1:20,
outname="Exp1_mean_subj", erplist=ERPsets)

ERPsets=c(ERPsets, ERPsetsmean)

Run the code above in your browser using DataLab