Skip to contents

Split an Interval object into a data frame with two columns: start and end.

Usage

# S3 method for class 'Interval'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

An Interval object.

row.names

Passed to data.frame(). Either NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

optional

Passed to data.frame(). A single logical value, if TRUE, setting row names and converting column names (to syntactic names: see make.names) is optional. !optional is passed to check.names in data.frame(). Default is FALSE.

...

Additional arguments passed to data.frame().

Value

A data frame with two columns: start and end.