I'm using a dataset from COVID-19 World Vaccine Adverse Reactions | Kaggle, specifically the dataset "2021VAERSSYMPTOMS.csv".
The dataset contains the a column with the ID of persons who have been vaccinated (VAERS_ID) and columns with the side effects that these persons experienced from the vaccine (SYMPTOMS1-5).
From this, I have made a new tibble where each VAERS_ID has its own row and multiple columns (>5) containing symptoms.
Using tidyverse, I would now like to add additional columns (or make a new tibble) that has a column with VAERS_ID and columns with the top 20 symptoms (these I have extracted) indicating with TRUE/FALSE whether the patient has the symptom.
So in summary, is there a way, using tidyverse, in which I can check whether each row of a tibble contains a certain value, and then add TRUE/FALSE to a new column with this value name?