Any quick way to substitute a column into rows?

Hi.

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:

image

And i want it to look like:

image

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.
Cheers

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.