Learn R Programming

medparser (version 0.2.0)

DecimalStringToInteger: DecimalStringToInteger

Description

Converts string into integer

Usage

DecimalStringToInteger(string)

Value

integer

An integer

Arguments

string

Character to be converted into an integer

Author

Olivia Ortelli, Tony Colarusso

Examples

Run this code
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))

Run the code above in your browser using DataLab