# computes an empirical cumulative distribution function
# for either net productivity (default) or gross productivity
# using Monte Carlo data frame
buffer_req <- function(x, net){
if(missing(net)) {net=TRUE} else {net=net}
ifelse(net==FALSE,ecdf(Monte.Carlo$gross.productivity)(x),
ecdf(Monte.Carlo$net.productivity)(x))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.