Skip to contents

This function loads the FReD dataset into R, from a .csv file or the first sheet of an .xlsx file.

Usage

read_fred(
  data = get_param("FRED_DATA_FILE"),
  retain_es_as_character = TRUE,
  verbose = FALSE
)

Arguments

data

Path to the FReD dataset (defaults to the latest FReD data on Zenodo), unless the package is in offline mode (use_FReD_offline())

retain_es_as_character

Should effect sizes be retained as character? Defaults to TRUE, so that coded test statistics with df can be converted to common metric.

verbose

Should detailed messages be printed that highlight data conversion issues? Defaults to FALSE (quiet mode). TRUE prints detailed warnings, and NULL prints a summary of problems.

Value

A data frame with the FReD dataset