#' @export
diffr.tot<-function(dat)
{
diffr(dat)*dat$N
}
diffr.ppn<-function(dat,cond)
{
dat$y.value<-eval(parse(text=paste("dat$y.value",cond,sep="")))*1
diffr(dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.