This breaks the IBRAP object up by a specified IBRAP object.

splitIBRAP(object, split.by)

Arguments

object

IBRAP S4 class object

split.by

Character. Which column contained within object.sample_metadata should be used to split the object up

Value

A list of the separated IBRAP objects

Examples

list.of.objects <- splitIBRAP(object = object, 
                                        split.by = 'original.project')
#> Error in is(object = object, class2 = "IBRAP"): object 'object' not found