Features to Data Frame

Description

Convert a features object to a data frame

Usage

1
2
## S3 method for class '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

Author(s)

Melissa J. Hubisz and Adam Siepel

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

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