2
I want to filter by a term that doesn’t always appear alone and the number of combinations is huge. My variable LINHAII has several codes and I want to filter the occurrences that contains E119. However, filtering only returns unique occurrences when it is alone.
library(tidyverse)
dados <- filter(df_datasus, LINHAII %in% '*E119')
In cases where it appears *E119*I10X, for example, there is no return of this line.
How to filter just by a snippet of interest?