powered by
df to link table
df2link(test, fun = sum)
data.frame
df with at least 3 columns
function to summary the elements number, defalut: sum, you can choose mean.
sum
mean
data(otutab) cbind(taxonomy, num = rowSums(otutab))[1:10, ] -> test df2link(test)
Run the code above in your browser using DataLab