# NOT RUN {
data("example.data")
comm=example.data$comm
treat=example.data$treat
tree=example.data$tree
pd=example.data$pd
clas=example.data$classification
env=example.data$env
# remove one sample in purpose to see how match.name works
env=env[-13,]
sampid.check=match.name(rn.list = list(comm=comm, treat=treat, env=env))
comm.ck=sampid.check$comm
comm.ck=comm.ck[,colSums(comm.ck)>0,drop=FALSE]
treat.ck=sampid.check$treat
env.ck=sampid.check$env
taxid.check=match.name(cn.list = list(comm.ck=comm.ck),
rn.list = list(clas=clas),
tree.list = list(tree=tree))
comm.ck=taxid.check$comm.ck
clas.ck=taxid.check$clas
tree.ck=taxid.check$tree
# }
Run the code above in your browser using DataLab