target_split: Split into target groups

Description Usage Arguments Value Examples

View source: R/target_split.R

Description

Split extracted data into different target groups

Usage

1
target_split(data_ori, data_pro, target)

Arguments

data_ori,

original dataset consisting dataframes of "otu" and "meta"

data_pro,

extracted matrix of specified condition

target,

target variable

Value

a list of dataframes for each target

Examples

1
2
3
4
da<-simotu.gaus(50,700,3,nref=5,full.mean=10000,unif.min=0,unif.max=0.4,seed=1234)  
al<-data_extract(da,Target %in% c("target1","target2","target3")) # no otu names
ana0<-zomotu(al,0) ## delete otus not present in any sample, no otu names
ta<-target_split(da,ana0$otu,"Target")

yewei369/clotu documentation built on Dec. 23, 2021, 7:19 p.m.