dim.feat: Feature dimensions

Description Usage Arguments Value Author(s) Examples

View source: R/feat.R

Description

Get the dimensions of a features object

Usage

1
2
## S3 method for class 'feat'
dim(x)

Arguments

x

an object of type feat

Value

An integer vector of length two containing the number of rows and number of columns in the features object.

Author(s)

Melissa J. Hubisz

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)
dim(f1)
dim.feat(f1)
f2 <- as.pointer.feat(f1)
dim(f2)
dim.feat(f2)

rphast documentation built on May 1, 2019, 9:26 p.m.