dropallfactors {microeco}R Documentation

Remove all factors in a data frame

Description

Remove all factors in a data frame

Usage

dropallfactors(x, unfac2num = FALSE)

Arguments

x

data frame

unfac2num

default FALSE; whether try to convert all character to numeric; if FALSE, only try to convert column with factor attribute.

Value

data frame without factor

Examples

data("taxonomy_table_16S")
taxonomy_table_16S[, 1] <- as.factor(taxonomy_table_16S[, 1])
dropallfactors(taxonomy_table_16S)

[Package microeco version 0.2.1 Index]