Entering edit mode
5.1 years ago
mb314
▴
20
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?