HistolNumbOfBx: Extract the number of biopsies taken from histology report

Description Usage Arguments Examples

Description

This extracts the number of biopsies taken from the pathology report. This is usually from the Macroscopic description column. It collects everything from the regex [0-9]1,2.0,3 to whatever the string boundary is (z).

Usage

1
HistolNumbOfBx(inputString, regString)

Arguments

inputString

The input text to process

regString

The keyword to remove and to stop at in the regex

Examples

1
qq<-HistolNumbOfBx(Mypath$Macroscopicdescription,'specimen')

sebastiz/EndoMineR_devlop documentation built on May 29, 2019, 7:33 a.m.