R/pushDendroZoomHistory.R

pushDendroZoomHistory <- function
### Save the current dendroZoom (as stored in '.sharedEnv').
##keyword<<internal
(
    df, ##<< shared data frame
    dendroZoom, ##<< dendro zoom to push
    dbg=FALSE ##<< debug flag/level
) {
    if (dbg) cat('pushDendroZoomHistory called\n')
    if (dbg) printVar(dendroZoom)

    df$dendroZoomHistory<-c(list(dendroZoom),df$dendroZoomHistory)

    if (dbg) printVar(length(df$dendroZoomHistory))
    return(df)
    ### shared data frame with dendro zoom pushed on top of the
    ### dendro zoom stack
}

Try the idendr0 package in your browser

Any scripts or data that you put into this service are public.

idendr0 documentation built on May 2, 2019, 5:13 a.m.