Helper function: tidy dataframe

tidy_df(df, exclude_cols = "rec_number")

Arguments

df

data frame as retrieved by create_references_df() or clean_references_df()

exclude_cols

vector of column names to exclude for gathering (default: "rec_number")

Value

a tidy dataframe with columns rec_number, key and value

Examples

if (FALSE) { endnote_list <- create_endnote_list() refs_df <- create_references_df(endnote_list) refs_df_tidy <- tidy_df(refs_df) }