reduce | R Documentation |

In general, `"Intervals"`

and
`"Intervals_full"`

objects may be redundant, the
intervals they contain may be in arbitrary order, and they may contain
non-informative intervals for which one or both endpoints are
`NA`

. The `reduce`

function re-represents the underlying
subsets of the integers or the real line in the unique, minimal form,
removing intervals with `NA`

endpoints (with warning).

```
## S4 method for signature 'Intervals_virtual'
reduce( x, check_valid = TRUE )
```

`x` |
An |

`check_valid` |
Should |

A single object of appropriate class, compactly representing the
union of all intervals in `x`

. All intervals in `reduce(x)`

have numeric (i.e., not `NA`

) endpoints.

See `interval_union`

, which is really just concatenates its
arguments and then calls `reduce`

.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.