I have been trying to merge two columns into a single column in R but I think I am missing something.
My dataframe looks something like this:
> df Gene_name Sequence GAPDH ATTTCGGGA ENAM GGGCTTACG KRAS AAATGCTTTC
I would like to create a single-column dataframe that will show the gene and the sequence right underneath like so:
> Merge GAPDH ATTTCGGGA ENAM GGGCTTACG KRAS AAATGCTTTC
Ive tried this: test<-cat(df$Gene_name,"\n",df$Sequence)
Doesnt seem to work..
Many thanks, Gina