Skip to contents

To be used on a list of data frames representing various NBA seasons. Consolidates the data frames by performing joins using full_join, ensuring that only unique columns from each data frame are included in the final result. It removes any columns that already exist in the preceding data frames.

Usage

consolidate_stats(data)

Arguments

data

A list of data frames. Each data frame corresponds to a season and contains various statistical categories.

Value

A consolidated data frame containing all the input data, or NULL if no valid join columns are found.