Skip to contents

Lines between lines containing "Outer Diameter" and "Txducers Spacing", respectively, are extrated.

Usage

.getMetadata(
  mylines,
  beginPattern = "Outer Diameter",
  endPattern = "Txducers Spacing",
  transpose = TRUE
)

Arguments

mylines

vector of character, each representing a line of a text file

beginPattern

pattern matching the line in which meta data block begins

endPattern

pattern matching the line in which meta data block ends

transpose

(default: TRUE)

Value

meta data read from mylines in the form of a data frame with one row containing the meta data values in the different columns (transpose == FALSE) or a data frame with columns names

and values (transpose == TRUE)