Joining multiple columns from different dataframes in R
I have 8 dataframes, each with two columns: one with nucleotide position (NT) and the other with count of how many times that position occurred. ex: data.frame("NT" = c("1","2","3"), "count" = c("34", "12", "17"))
I'm trying to join all 8 of these dataframes into one dataframe whereby my columns are: NT, count_sample1, count_sample2, count_sample3 etc.
I've tried using R's merge() function and dplyr's full_join() function, but can only join two at a time. Is there a way I can do all 8 with one command?
• 1,462 views
•
link
0 answers
No answers yet.
Log in to answer this question.
No,
mergeandfull_joinwork with two at a time. But searching would take you to some hits, like How to merge multiple data frames using base R.Hello mb314!
We believe that this post does not fit the main topic of this site.
More suitable to StackOverflow, and this type of questions been asked many times before:
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!