I have a dataframe similar to the one below except I have 17 Variables (like `Var1` and `Var2`) instead of 2.

```
df <- read.table(header = TRUE, text = 
          "STUD_ID       Var1   Var2
                 1          0      0
                 1          0      1
                 2          1      2
                 3          3      0", stringsAsFactors = FALSE)

```

I would like to create a new column that outputs a "Yes" if any of the 17 variables has values 1, 2 or 3, and "No" otherwise. My desired output is:

```
# STUD_ID       Var1   Var2  Output
#       1          0      0    "No"
#       1          0      1   "Yes"
#       2          1      2   "Yes"
#       3          3      0   "Yes"

```

I tried the following code but it gives the error and I would not want to copy-paste part of the code 17 times:

```
df %>%
  mutate(output = if_else(var1 %in% 1:3 |
                          var2 %in% 1:3, 1, 0))

```