Skip to contents

Merges columns of the same type from two data frames based on common column names.

Usage

merge_same_type_columns(df1, df2)

Arguments

df1

First data frame.

df2

Second data frame.

Value

A merged data frame containing matching columns.

Examples

merge_same_type_columns(data.frame(a = 1:3), data.frame(a = 4:6))
#>   a
#> 1 1
#> 2 2
#> 3 3
#> 4 4
#> 5 5
#> 6 6