Stacks Image 20108

For Academics

Transpose data frame

It is very easy to flip transpose a data frame in R.

i.e. from

1 2 3 4 5
a b c d e

to

1 a
2 b
3 c
4 d
5 e

However, row names need to be set first. For example

rownames(example.frame) <- c('row1', 'row2', 'row3', 'row4')

Flipping is done by t(data.frame)

fliped.example.frame<-data.frame(t(example.frame))
Previous Post 20 / 50 Post

Tag:

Sex chromosome papers RSS


The genome sequence of the Buff Arches, Habrosyne pyritoides (Hufnagel, 1766)
Link

The Evolutionarily Conserved Jasmonate Pathway Positively Affects Desiccation Tolerance on Syntrichia caninervis by Boosting Antioxidant Capacity
Link

The genome sequence of the nematode Ostertagia ostertagi (Stiles, 1892) (Rhabditida, Trichostrongylidae)
Link