DecimalStringToInteger {medparser}R Documentation

DecimalStringToInteger

Description

Converts string into integer

Usage

DecimalStringToInteger(string)

Arguments

string

Character to be converted into an integer

Value

integer

An integer

Author(s)

Olivia Ortelli, Tony Colarusso

Examples

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))

[Package medparser version 0.1.0 Index]