HistolNumbOfBx: Extract the number of biopsies taken from the histology...

View source: R/Basic_EndoPathExtractors.R

HistolNumbOfBxR Documentation

Extract the number of biopsies taken from the histology report

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

HistolNumbOfBx(inputString, regString)

Arguments

inputString

The input text to process

regString

The keyword to remove and to stop at in the regex

See Also

Other Histology specific cleaning functions: HistolBxSize(), HistolTypeAndSite()

Examples

qq <- HistolNumbOfBx(Mypath$Macroscopicdescription, "specimen")

sebastiz/EndoMineR documentation built on Dec. 4, 2022, 7:04 p.m.