powered by
Group your data
hebing2(otutab, group_df, margin = 2, act = "mean")
data.frame
group data.frame with two columns (id and group). The same ID can be mapped to multiple groups.
1 for row and 2 for column(default: 2)
do (default: mean)
data(otutab) hebing2(otutab, data.frame(id = c("NS1", "NS2", "NS1", "NS3"), group = c("A", "A", "B", "B")))
Run the code above in your browser using DataLab