I’m trying to unite two different columns: Type.1
and Type.2
. Both have the same type (character) but when I try an inner_join()
I get the following message:
library(dplyr)
type_united <- inner_join(data1$Type.1,data1$Type.2)
# no applicable method for 'inner_join' applied to an object of class "character"
I get the same mistake while trying a left_join()
(sometimes Type.2
has a null value, so I figured it could solve the problem).
What could I do to unify these two columns into a single one?