Learn R Programming

rphast (version 1.6.9)

ncol.feat: Number of Columns in Features

Description

Get the number of columns in a features object

Usage

# S3 method for feat
ncol(x)

Arguments

x

An object of type feat

Value

An integer containing the 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)
f <- feat(seq, src, feature, start, end)
ncol.feat(f)
ncol.feat(as.pointer.feat(f))
# }

Run the code above in your browser using DataLab