Hi all,
I have two data frames with same variables. It has students name and Marks scored. I need to merge it in such a way that I get all the students together in a single data frame.
library(tidyverse)
library(janitor)
#>
#> Attaching package: 'janitor'
#> The following objects are masked from 'package:stats':
#>
#> chisq.test, fisher.test
a<-tibble::tribble(
~Student.Name, ~Marks,
"a", 12L,
"b", 45L,
"c", 23L,
"d", 65L,
"e", 67L,
"f", 90L
)
b<-tibble::tribble(
~Student.Name, ~Marks,
"p", 22L,
"q", 56L,
"r", 98L,
"w", 44L,
"t", 55L,
"u", 10L,
"v", 96L,
"z", 50L
)
Created on 2021-12-30 by the reprex package (v2.0.1)