Get Intersecting Column Names Between Two Datasets
get_intersecting_cols.Rd
Helper function to find column names that exist in both datasets when there are exactly two datasets in the TidyTuesday data list.
Arguments
- ttd
A list of data frames from
load_tt_data()
Value
A character vector of intersecting column names, or empty vector if no intersections or if not exactly 2 datasets
Examples
ttd <- load_tt_data("Moore’s Law")
#> INFO [2025-07-24 06:20:04] Starting import for cpu.csv from https://raw.githubusercontent.com/rfordatascience/tidytuesday/refs/heads/main/data/2019/2019-09-03/cpu.csv
#> SUCCESS [2025-07-24 06:20:04] Successfully loaded cpu.csv
#> INFO [2025-07-24 06:20:04] Starting import for gpu.csv from https://raw.githubusercontent.com/rfordatascience/tidytuesday/refs/heads/main/data/2019/2019-09-03/gpu.csv
#> SUCCESS [2025-07-24 06:20:04] Successfully loaded gpu.csv
#> INFO [2025-07-24 06:20:04] Starting import for ram.csv from https://raw.githubusercontent.com/rfordatascience/tidytuesday/refs/heads/main/data/2019/2019-09-03/ram.csv
#> SUCCESS [2025-07-24 06:20:05] Successfully loaded ram.csv
get_intersecting_cols(ttd)
#> character(0)