split_cnr: split a cnr by one variable

View source: R/split_cnr.R

split_cnrR Documentation

split a cnr by one variable

Description

split a cnr by one variable

Usage

split_cnr(cnr, split.by)

Arguments

cnr

a cnr object

split.by

name of the column to split. Must be a column in the phenotype or qc tables

Value

Function subsets based on 'split.by' and returns a list of named cnr objects. Element names are taken from the unique values of split.by

Examples


data(cnr)

cnrL <- split_cnr(cnr, split.by = "category1")

lapply(cnrL, summary_cnr)


SingerLab/gac documentation built on March 23, 2024, 5:15 a.m.