create_group {OMICsPCA} | R Documentation

## Subsets an Assay dataframe into smaller groups

### Description

This function subsests an user defined Assay into smaller groups according to user supplied instructions.

### Usage

    create_group(name, group_names = NULL,
                    grouping_factor = NULL,
                    comparison = NULL,
                    condition = NULL
                    )

### Arguments

`name` | Name of the "MultiAssayExperiment"" object containing the assay data
`group_names` | A vector containing the user defined names of the groups to be created
`grouping_factor` | name of the dataframe on which grouping will be done
`comparison` | A vector of comparison symbols such as >, <, ==, >=, <=,%in%, etc
`condition` | A vector of conditions corresponding to 'comparison'. "condition"" should be a vector or range of digits (e.g. c(1,3,7,9) or 1:5) if%in% is chosen as comparison. Otherwise, a single digit should be chosen.

### Value

returns the group membership of individuals as a dataframe

### Author(s)

Subhadeep Das <subhadeep1024@gmail.com>

### Examples

    groupinfo <- create_group(name = multi_assay,
    group_names = c("WE","RE","NE","IntE"),
    grouping_factor = "CAGE",
    comparison = c(">=","%in%","==","%in%"),
    condition = c("25","1:5","0","6:24"))

    head(groupinfo)

[Package OMICsPCA version 1.4.0 Index]