Let's say I have this dataset

```
> example <- data.frame(a = 1:10, b = 10:1, c = 1:5 )

```

I want to create a new variable `d`. I want in `d` the value 1 when at least in of the variables `a b c` the value 1 2 or 3 is present.
`d` should look like this:

```
d <- c(1, 1, 1, 0, 0, 1, 1, 1, 1, 1)

```

Thanks in advance.