After choosing a name for keywords that have more than one in a spreadsheet, join those results back in. This step also fixes cases where the same keyword is given more than one rank (this is just an error in the data).

nyt_fix_keywords(
  consolidated_unnested_df,
  multi_names_output_folder = "single_named_values"
)

Arguments

consolidated_unnested_df

output of nyt_clean_keywords()

multi_names_output_folder

folder to find corrected keyword values csv

Value

an unnested df with consolidated, non-duplicate keyword values and names

Examples

if (FALSE) { unnested_df_values_fixed <- nyt_fix_keywords(consolidated_unnested_df) }