Learn R Programming

rphast (version 1.6.9)

as.data.frame.feat: Features to Data Frame

Description

Convert a features object to a data frame

Usage

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

Arguments

x

an object of type feat

row.names

optional names for each feature

optional

logical, if TRUE, setting row names and converting column names (to syntactic names: see make.names is optional.

...

additional arguments to be passed to other methods

Value

a data frame containing features data

See Also

feat for a description of features data frames, and as.pointer.feat for conversion in the other direction.

Examples

Run this code
# NOT RUN {
seq <- rep("hg18.chr6", 10)
src <- rep("fake_example", 10)
feature <- rep("CDS", 10)
start <- seq(1, 100, by=10)
end <- seq(10, 100, by=10)
f1 <- feat(seq, src, feature, start, end, pointer.only=TRUE)
summary(f1)
f2 <- as.data.frame(f1)
summary(f2)
dim(f2)
# }

Run the code above in your browser using DataLab