In R the any-Function is applied over columns that the result is boolean. 
What is the best way, to apply it row by row? My target in this case is to do a recode for A, if any of A, B or C is 1 or 6. (If TRUE TEST$NEW should be 101)

Here my DataFrame:

```
  A B C D
  1 1 1 "A"
  2 1 2 "B" 
  3 6 3 "C"
  5 3 5 "D"

```

It could be done in this way, but there should be a smarter solution:

```
TEST$NEW <- ifelse(TEST$A == 1 | TEST$B == 1 | TEST$C == 1 | TEST$A == 6 | TEST$B == 6 | TEST$C == 6, 101, NA)

```