DecimalStringToInteger {medparser} | R Documentation |
Converts string into integer
DecimalStringToInteger(string)
string |
Character to be converted into an integer |
integer |
An integer |
Olivia Ortelli, Tony Colarusso
file_path <- system.file("extdata", "ExampleMPCOutput.txt", package = "medparser")
allText = readLines(file_path)
B_index = 1+grep("B:", allText[-1], value = FALSE)
Left_LeverPressBout = DecimalStringToInteger(PullStringFromIndex(allText,B_index+1))