I have to merge two datasets, but the code "merge" is overloading my computer and it is taking too long to knit. Which code should I use instead?
Here's the code that I used so far:
brm_avrg <- merge(avrg, brm)
head(brm_avrg)
I have to merge two datasets, but the code "merge" is overloading my computer and it is taking too long to knit. Which code should I use instead?
Here's the code that I used so far:
brm_avrg <- merge(avrg, brm)
head(brm_avrg)
I looked at the FAQ on merging data in R and I ran the code "full_joint" in order to replace "merge". In order to do that I had to rename an existing common variable of the datasets. Here's the code that I used: codmun_renamed <- rename(brm, codmun = COD_MUN_IBGE)
brm_avrg <- full_join(codmun_renamed, avrg)
head(brm_avrg)