Learn R Programming

rphast (version 1.6.9)

dim.feat: Feature dimensions

Description

Get the dimensions of a features object

Usage

# S3 method for 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.

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)
dim(f1)
dim.feat(f1)
f2 <- as.pointer.feat(f1)
dim(f2)
dim.feat(f2)
# }

Run the code above in your browser using DataLab