define_grouping-methods: description of function define_grouping

Description Usage Arguments Examples

Description

This will create a new sample or annotation column based on an old grouping and a list.

Usage

1
define_grouping(x, basedOn, colname, newNames, what = "col")

Arguments

x

The BioData object

basedOn

the old grouping name

colname

the new grouping name

newNames

the list "with new_group_name" = c( "old Group Names" ) structure

what

create a sample ('col') or annotation ('row') grouping

Examples

1
2
3
# data is a BioData object with a sample group 'oldG' and the levels c( 1, 2, 3, 4)
define_grouping( data, 'oldG', 'newGrouping', list( 'A' = c( 1,4), B= c(2,3)), 'col')
# will create a 'newGrouping' column in the $samples table with the entries A and B

stela2502/BioData documentation built on Feb. 23, 2022, 5:47 a.m.