Combine Two Data Frames with Different Variables by Rows in R (Example) | bind_rows Function [dplyr]

Опубликовано: 27 Январь 2021
на канале: Statistics Globe
4,968
73

How to merge two data frames with different column names in the R programming language. More details: https://statisticsglobe.com/r-combine...
R code of this video:

data1 <- data.frame(x1 = 1:5, # First data frame
x2 = letters[1:5])
data1

data2 <- data.frame(x2 = LETTERS[11:15], # Second data frame
x3 = 777)
data2

install.packages("dplyr") # Install & load dplyr
library("dplyr")

bind_rows(data1, data2) # Applying bind_rows function

Follow me on Social Media:
Facebook:   / statisticsglobecom  
Patreon:   / statisticsglobe  
Pinterest: https://www.pinterest.de/JoachimSchork
Reddit:   / joachimschork  
Twitter:   / joachimschork  


Смотрите видео Combine Two Data Frames with Different Variables by Rows in R (Example) | bind_rows Function [dplyr] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Statistics Globe 27 Январь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,968 раз и оно понравилось 73 людям.