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

Share:

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

1
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.

Details

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

Value

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

Author(s)

Giorgio Arcara

See Also

create.diff

Examples

1
2
3
4
5
6
data(ERPsets)

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

ERPsets=c(ERPsets, ERPsetsmean)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.