Merge Data Frames by Row Names in R (Example) | Join & Combine data.frames

preview_player
Показать описание
R code of this video:

x2 = c("A", "Y", "G", "F", "G", "Y"))
data1 # Print data1 to RStudio console

y2 = c("a", "x", "a", "x", "a", "x"))
rownames(data2) <- 3:8
data2 # Print data2 to RStudio console

merge(data1, data2, by = 0) # Merge data accroding to row names
Рекомендации по теме
Комментарии
Автор

Nice tutorial.. keep spreading the knowledge!!! :)

elseemail
Автор

Hello, could you maybe make a video on merge with different row numbers. I can provide the datasets for this video.

md.masumomarjashim