setGroup {rMEA}R Documentation

Sets the group of MEA objects

Description

Sets the group of MEA objects

Usage

setGroup(mea, group)

Arguments

mea

a single or a list of MEA objects (see function readMEA)

group

a text string specifying a group name

Value

an object of the same type of 'mea', with the group attributes set to group.

Examples

## read a sample
path_normal <- system.file("extdata/normal", package = "rMEA")
mea_normal <- readMEA(path_normal, sampRate = 25, s1Col = 1, s2Col = 2,
                     s1Name = "Patient", s2Name = "Therapist",
                     idOrder = c("id","session"), idSep = "_",  skip = 1)
mea_normal <- setGroup(mea_normal, "normal")

[Package rMEA version 1.2.2 Index]