import_data: Import REDCap data

Description Usage Arguments Value

View source: R/import_data.R

Description

Import a formatted Excel REDCap datafile containing the following variables:

The four date variable must be in date format in Excel. A censoring date could be defined. If such a date is not given, it is guessed based on the data.

Usage

1
import_data(path, ..., censoring_date = NULL)

Arguments

path

path to data file

...

other parameter passed to readxl::read_xlsx

censoring_date

date used for censoring (optional, format: %Y-%m-%d)

Value

a dataframe containing the following variables

The censoring date is returned as an attributes (censoring_date)


jpasquier/mscovid documentation built on March 31, 2021, 4:42 a.m.