typeConvert: Transpose the data frame if there is data type conversion.

Description Usage Arguments Details Value Author(s) Examples

View source: R/typeConvert.R

Description

function to transpose the data frame if there is data type conversion.

Usage

1
typeConvert(otutab,taxhead = NULL)

Arguments

otutab

An OTU table, which can contain no taxonomy. The OTU table can be given in numeric counts or in relative abundance.

taxhead

Character, specify the header of taxonomy. By default the taxonomic column is NULL.

Details

This function is to convert the numeric values into right type so that the downstream numeric calculation could be processed without type error.

Value

This function returns a transposed OTU table. In the source OTU table the numeric values showing "character" or "factor" will be converted to right types.

Author(s)

Sizhong Yang <yanglzu@163.com>

Examples

1
2
3
4

camel315/otuSummary documentation built on May 5, 2019, 12:29 p.m.