Skip to contents

Loads all sheets of an Excel file in a named list. Used for reading in metadata.

Usage

get_metadata(
  filepath,
  expand_tab_items = c("common_forms", "study_forms", "general"),
  expand_cols = "suffix"
)

Arguments

filepath

Filepath to the .xlsx file.

expand_tab_items

Character vector with the names of the tabs of which the items need to be expanded. If not empty, a new data frame will be created named 'expanded_items', containing all items in the tabs of expand_tab_items. Will abort if a tab name is provided that does not exist in the metadata.

expand_cols

Column names containing the columns for expansion. Will be ignored if the variable expand_tab_items is left empty.

Value

A list with data frames.