Prüft die Spezifikation gegen jeden Fall in einem tibble und fügt eine logische Spalte mit dem Ergebniss hinzu.

F_Rektum_ex(x)

Arguments

x

ein tibble (siehe Format des Rückgabewertes von read.bfs)

Value

wahr oder falsch

Spezifikation

F_Rektum_ex <- function(x){ x %>%
mutate(F_Rektum_ex =
!( ((srg %in_table% (CHOP_Rektumresektion_Sphinktererh) &
ddx %in_table% (ICD_Rektumkarzinom)) |
(srg %in_table% (CHOP_Rektumresektion_ohne_Sphinktererh) &
ddx %in_table% (ICD_kolorektales_Karzinom))) &
srg %not_in_table% (CHOP_Kolonresektion_erweitert_total)) ) }

Examples

if (FALSE)  read.bfs(path2file) %>% F_Rektum_ex()  # \dontrun{}