R/codeCountW.R

Defines functions codeCountW

.countW  <- makeCodeWalker(
    call = function(e, w)
        lapply(e, function(ee) walkCode(ee, w)),
    leaf = function(e, w)
        deparse(e)
    )

codeCountW <- function(expr)
    table(unlist(
        walkCode(expr, .countW),
        recursive = TRUE))
johnmchambers/XRexamples documentation built on May 19, 2019, 5:16 p.m.