To install, first make sure devtools package in installed. In an R session:
install.packages("devtools")
Next, install this package directly from github:
devtools::install_github("gkane26/rmedpc")
The function takes one argument - the path to the MedPC data file. It returns a list containing each of the variables from MedPC. Variables can be referenced by name:
filename = file.choose()
med_data = rmedpc::import_medpc(filename)
# example references to variables
print(med_data$Subject)
print(med_data$'Start Date')
print(med_data$A)