Sometimes vegetation data is organized as a data frame with samples in columns and taxa in rows, with taxon names stored in the first column, e.g. as result of the function merge_taxa
.
In this case you can use row.names = F
to directly convert this species matrix into a statistically analyzable format, e.g. with vegan
.
If your dataframe contains prepended “X” to each header due to numbered samples, you can use rmchar = TRUE
to remove the first character of the column names during transposing.
(You may also avoid this problem at all by using check.names = FALSE
when loading the data in read.table
)