Select groups

selectGroups(
  groups = c(),
  selected.groups = c(),
  inverse = FALSE,
  returnIndex = FALSE
)

Arguments

groups

membership vector with as many entries as samples

selected.groups

names of groups to keep

inverse

keep groups that are not in selected groups

returnIndex

return the indices of the selected samples

Value

modified group membership vector