Learn R Programming

pcutils (version 0.2.8)

df2link: df to link table

Description

df to link table

Usage

df2link(test, fun = sum)

Value

data.frame

Arguments

test

df with at least 3 columns

fun

function to summary the elements number, defalut: sum, you can choose mean.

Examples

Run this code
data(otutab)
cbind(taxonomy, num = rowSums(otutab))[1:10, ] -> test
df2link(test)

Run the code above in your browser using DataLab