hebing2 | R Documentation |
Group your data
hebing2(otutab, group_df, margin = 2, act = "mean")
otutab |
data.frame |
group_df |
group data.frame with two columns (id and group). The same ID can be mapped to multiple groups. |
margin |
1 for row and 2 for column(default: 2) |
act |
do (default: mean) |
data.frame
data(otutab)
hebing2(otutab, data.frame(id = c("NS1", "NS2", "NS1", "NS3"), group = c("A", "A", "B", "B")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.