powered by
Remove all factors in a data frame
dropallfactors(x, unfac2num = FALSE)
data frame
default FALSE; whether try to convert all character to numeric; if FALSE, only try to convert column with factor attribute.
data frame without factor
# NOT RUN { data("taxonomy_table_16S") taxonomy_table_16S[, 1] <- as.factor(taxonomy_table_16S[, 1]) dropallfactors(taxonomy_table_16S) # }
Run the code above in your browser using DataLab