Barretts_PragueScore: Prague score extraction

Description Usage Arguments Examples

Description

The aim is to extract a C and M stage (Prague score) for Barrett's samples. This is done using a regex where C and M stages are explicitly mentioned in the free text Specfically it extracts the Prague score

Usage

1
Barretts_PragueScore(dataframe, EndoReportColumn, EndoReportColumn2)

Arguments

dataframe

dataframe with column of interest

EndoReportColumn

column of interest

EndoReportColumn2

second column of interest

Examples

1
2
3
4
5
6
7
8
9
#The example takes the endoscopy demo dataset and searches the
# Findings column (which contains endoscopy free text about the
# procedure itself). It then extracts the Prague score if relevant. I
# find it easiest to use this on a Barrett's subset of data rather than
# a dump of all endoscopies but of course this is a permissible dataset
# too


aa<-Barretts_PragueScore(Myendo,'Findings','OGDReportWhole')

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