find_common_columns.Rd
This function identifies common column names between multiple data frames. It takes a variable number of data frames as input and returns a character vector containing the common column names.
find_common_columns(...)
A variable length list of data frames.
A character vector of column names found in common between all data frames.
df1 <- data.frame(a = c(1, 2, 3), b = c(4, 5, 6))
df2 <- data.frame(a = c(7, 8, 9), b = c(10, 11, 12), c = c(13, 14, 15))
common_columns <- find_common_columns(df1, df2)
print(common_columns)
#> [1] "a" "b"