df2link {pcutils} | R Documentation |
df to link table
df2link(test, fun = sum)
test |
df with at least 3 columns |
fun |
function to summary the elements number, defalut: |
data.frame
data(otutab)
cbind(taxonomy, num = rowSums(otutab))[1:10, ] -> test
df2link(test)