# Compute set difference

### Description

Compute the set difference between two objects.

### Usage

1 2 | ```
## S4 method for signature 'Intervals_virtual,Intervals_virtual'
interval_difference(x, y, check_valid = TRUE)
``` |

### Arguments

`x` |
An |

`y` |
An |

`check_valid` |
Should |

### Value

An object representing the subset of the integers or real line, as
determined by `type(x)`

, found in `x`

but not in `y`

.

### See Also

These methods are just wrappers for
`interval_intersection`

and
`interval_complement`

.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.