This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Merge files in r studio!

Hello!

HOW do i merge more than two files in r studio by common variables? i have tried searching it and majority of them said only two data frames. But I have 9 files that need to be merged into one big file by gene_id, an log2fold change. Is there an easier code to merge the 9 files into one big files? ALSO, how do I change the rows? Like for example, one gene appears across two times in a row, however I want it stacked it on a column so it looks like this as shown below:

Appears as: Gene 1 Gene 1

Need as: enter image description here

merge r studio csv

Hello oqp5041!

Questions similar to yours can already be found at:

We have closed your question to allow us to keep similar content in the same thread.

If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.

Cheers!

PS: Please do not open multiple posts for the same question.

2 answers

Didn't you get an anwser in this thread Merging more than 2 csv files in r studio? that you started not even 24 hours before this one?

This cheatsheet for the R package dplyr join functions may be useful to you: https://stat545-ubc.github.io/bit001_dplyr-cheatsheet.html

Log in to answer this question.