I have a following data frame representing paired observations made for each ID:

```
      structure(list(ID = c(9000099, 9000099, 9000296, 9000296, 9000622, 
      9000622), variable = c(2, 0, 0, 4, 0, 1), SIDE = c(1, 2, 1, 2, 
      1, 2)), .Names = c("ID", "variable", "SIDE"), row.names = c(NA, 
      6L), class = "data.frame")

          ID variable SIDE
    1 9000099        2    1
    2 9000099        0    2
    3 9000296        0    1
    4 9000296        4    2
    5 9000622        0    1
    6 9000622        1    2

```

I would like to index my dataframe so if variable meets my indexing criteria anywhere, both rows corresponding to this ID will be removed.
For example, if I index data frame by variable = 4, my df will look like:

```
            ID variable SIDE
    1 9000099        2    1
    2 9000099        0    2
    5 9000622        0    1
    6 9000622        1    2

```

if I index by variable = 1, the data frame will be as follows:

```
          ID variable SIDE
    1 9000099        2    1
    2 9000099        0    2
    3 9000296        0    1
    4 9000296        4    2

```

Is there any way to do it without transforming my data frame?