Learn R Programming

CME.assistant (version 1.1.4)

read.results.csv.file: Read one results.csv file and reformat into long-format

Description

Read one results.csv file and reformat into long-format

Usage

read.results.csv.file(
  dt_dir,
  year_range = 1931:2019,
  q = c("Lower", "Median", "Upper"),
  sex = NULL
)

Arguments

dt_dir

the single directory to a results.csv file

year_range

year range desired, default to `1931:2019`

q

quantile desired, default to `c("Lower", "Median", "Upper")`

sex

default to NULL, Sex is determined from `dt_dir`, unless specified

Value

long-format dt containing all indicators