F_Hueft_Knie_Tumor_aus.RdPrüft die Spezifikation gegen jeden Fall in einem tibble und fügt eine logische Spalte mit dem Ergebniss hinzu.
F_Hueft_Knie_Tumor_aus(x)ein tibble (siehe Format des Rückgabewertes von read.bfs)
wahr oder falsch
F_Hueft_Knie_Tumor_aus <- function(x){ x %>%
mutate(F_Hueft_Knie_Tumor_aus =
!(srg %in_table% (CHOP_Huefte_Implantation %+%
CHOP_Hueft_TEP_Wechsel %+%
CHOP_Knie_Implantation %+%
CHOP_Knie_TEP_Wechsel) &
(ddx %in_table% (ICD_TUMOR) |
srg %in_range% c('81A111'))) ) }
if (FALSE) read.bfs(path2file) %>% F_Hueft_Knie_Tumor_aus() # \dontrun{}