load_data: Load data

View source: R/load_data.R

load_dataR Documentation

Load data

Description

Load data from an xlsx file.

Usage

load_data(path, date = TRUE, first_date = NULL, frequency = NULL, sheet = NULL)

Arguments

path

A path to the xlsx file containing all the data.

date

A logical indicating whether the first column of the file is a date column. The date must be of the form "YYYY-MM-01"

  • if missing defaults to TRUE.

first_date

A character indicating the date of observation of the first sample when date is FALSE, must be of the form "YYYY-MM-01"

  • if missing defaults to NULL.

frequency

A character "month" or "quarter" used to generate dates when date = FALSE - if missing defaults to NULL.

sheet

A character, sheet in the xlsx file - if missing defaults to NULL.

Value

A df/tibble with a date column and loaded data


aflatoune/approche-directe documentation built on May 30, 2022, 1:56 p.m.