| RangedData-utils {IRanges} | R Documentation |
Utility functions for manipulating RangedData objects.
## S4 method for signature 'expressionORlanguage, ## RangedData': eval(expr, envir, enclos = parent.frame())
expr |
The expression, call, or name to be
evaluated. |
envir |
The RangedData object in which to evaluate
expr. |
enclos |
The environment in which to look for symbols that
do not exist in the environment formed from
RangedData. |
The eval method converts the RangedData object
specified in envir to an environmnent, with
enclos as its parent, and then evaluates
expr within that environment. The RangedData environment
contains the following objects:
rangesunlist(ranges(envir)),
i.e. all of the ranges in a single Ranges object.colnames(envir)envir are stored
individually by their column names.
The objects are not actually copied into the
environment. Rather, they are dynamically bound using
makeActiveBinding. This prevents unnecessary copying of
the data from the external vectors into R vectors. The values are
cached, so that the data is not copied every time the symbol is
accessed.
The result of expression evaluation.
Michael Lawrence
FilterRules objects, which can be evaluated on a
RangedData, and the base eval function.
ranges <- IRanges(c(1,2,3),c(4,5,6)) score <- c(10L, 2L, NA) rd <- RangedData(ranges, score) evalq(score > 3, rd)