PullStringFromIndex {medparser}R Documentation

PullStringFromIndex

Description

Pulls indices from MPC arrays

Usage

PullStringFromIndex(allText, index)

Arguments

allText

Character string containing MPC file

index

A number specifying the index where the array or value of interest begins in the MPC file

Value

stringValue

A character string following the index start

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]