reset.META: Reset OTU

Description Usage Arguments Value Author(s) Examples

Description

This function reset data type of metadata variables.

Usage

1

Arguments

meta

data frame. The metadata table to reset variable data type.

factor

a string or charactor vector, containing the column names of metadata variables to be set as factor.

reset.META

numeric

a string or charactor vector, containing the column names of metadata variables to be set as numeric.

date

a string or charactor vector containing the column names of metadata variables to be set as date.

Value

This function returns the same metadata with variables being reset to desired data type. Warnings or errors may be raise if the format of the original data cannot be recognized by R.

Author(s)

Wen Chen

Examples

1
2
3
4
5
6
7
8
9
data(meta)
str(meta)
## Not run: 
# for demonstration purpose only
meta.new <- reset.META(meta, factor=c("Plots"),
                   numeric=c("City", "Province"))
str(meta.new)

## End(Not run)

RAM documentation built on May 2, 2019, 3:04 p.m.