IPSSMread: Read User Input Data and Validate Format

View source: R/IPSSMread.R

IPSSMreadR Documentation

Read User Input Data and Validate Format

Description

Function that reads the user input data and performs some validation for the presence, format, and values of the input data.

Usage

IPSSMread(path.file, sheet = 1)

Arguments

path.file

path to the input data file. Allowed formats are .csv, .tsv, .xls, and .xlsx.

sheet

sheet number for excel format input file. Default is 1.

Value

A patient input data.frame.

Examples

path.file <- system.file("extdata", "IPSSMexample.csv", package = "ipssm")
dd <- IPSSMread(path.file)
print(dd)

path.file2 <- system.file("extdata", "IPSSMexample.xlsx", package = "ipssm")
dd2 <- IPSSMread(path.file2, sheet = 2) # equivalent


papaemmelab/ipssm documentation built on Feb. 8, 2023, 3:09 p.m.