###############################################################################
# Description: Add comment
#
# Author: Linh Tran <tranlm@berkeley.edu>
# Date: Jun 17, 2015
###############################################################################
#' @export
bound = function(x, range) {
newX = x
newX[newX<min(range)] = min(range)
newX[newX>max(range)] = max(range)
return(newX)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.