This extracts numbers from written (spelt) numbers in the Macroscopic description text. This means the text can then be used to extract the number and size of biopsies.This is used as part of the HistolNumOfBx function below and normally not used as a stand alone function.
HistolMacDescrip(dataframe, MacroColumn)
dataframe | dataframe |
---|---|
MacroColumn | column to extract the numbers from. Usually the column with the Nature of the specimen or the Macroscopic description in it |
pp<-HistolMacDescrip(Mypath, 'Macroscopicdescription')