Skip to contents

Read a mothur formatted shared file

Usage

read_mothur_shared(shared)

Arguments

shared

file name (required)

Value

A data.frame containing the sequence otu assignments

Examples


# You can add your otu assignments to the your data set using the following:

# read mothur shared file into data.frame
otu_data <- read_mothur_shared(strollur_example("final.opti_mcc.shared"))

# create a new empty `strollur` object
data <- new_dataset()

# assign abundance only 'otu' bins parsed by sample
assign(data = data, table = otu_data, type = "bins", bin_type = "otu")
#> Assigned 531 otu bins.
#> [1] 531