Any quick way to substitute a column into rows?


Is there any way to replace the values of a column so that it becomes rows instead? This is what my data currently looks like:


And i want it to look like:


Notice that the numbers 1-6 are removed, as well as the "Spp".

Thank you!

Hi @niko_bio ,
You can simply use column_to_rownames(data, var = "spp") from the tibble package.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.