I have the following dataframe (converted from a tax_table object from the phyloseq package).
How can i remove the attributes ??
str(DT2_mat)
'data.frame': 5120 obs. of 7 variables:
$ : Factor w/ 2 levels "Archaea","Bacteria": 2 2 2 2 2 2 2 2 2 2 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
$ : Factor w/ 28 levels "Acidobacteria",..: 2 2 2 2 2 2 2 2 2 2 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
$ : Factor w/ 60 levels "Acidimicrobiia",..: 3 3 3 3 3 3 3 3 3 3 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
$ : Factor w/ 108 levels "Acholeplasmatales",..: 29 29 29 29 29 29 29 29 29 29 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
$ : Factor w/ 216 levels "0319-6A21","0319-6G20",..: 58 58 58 58 58 58 58 58 58 58 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
$ : Factor w/ 699 levels "Abiotrophia",..: 173 173 173 173 173 173 173 173 173 173 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
$ : Factor w/ 4964 levels "Abiotrophia defectiva Score:0.87",..: 1613 1529 1449 1448 1565 1438 1563 1532 1623 1605 ...
..- attr(*, "names")= chr "P11_16513" "P193_8942" "P187_9526" "P11_4543" ...
P
Actually droping levels removed all the attributes.