I would to create a data frame with 12 columns and one row. I have this data:
Tissues <-
[1] "ova" "testes" "optic_lobe" "retina" "suckers"
[6] "subesophageal_brain" "Supraesophageal_brain" "skin" "stage15tissues" "axial_nerve_corde"
[11] "posterior_salivary_gland" "viscera"
reads <-
[1] 22444744 30671024 22648756 24002307 26438055 48999389 60168243 30172728 26812536 23359754 24038817 25570689
I would to create this:
tissue1 tissue2 tissue3 tissue4 tissue5 tissue6 etc..
reads 1 2 3 4 5 6
I've tried:
df <- data.frame(matrix(ncol = 12, nrow = 1))
x <- TESSUTI
colnames(df) <- x
but how can I add the reads to each columns?
anyone could help me?
setNames(as.data.frame.list(reads)), Tissues)