Nothing
ratedata <- function(pophaz = pophaz, cumpophaz = cumpophaz, data = data) {
if (is.null(pophaz) & is.null(cumpophaz)) {
pophaz <- rep(0, nrow(data))
cumpophaz <- rep(0, nrow(data))
}else if (!is.null(pophaz) & is.null(cumpophaz)) {
pophaz <- data[,eval(pophaz)]
cumpophaz <- rep(0, nrow(data))
}else if (!is.null(pophaz) & !is.null(cumpophaz)) {
pophaz <- data[,eval(pophaz)]
cumpophaz <- data[,eval(cumpophaz)]
}else if (is.null(pophaz) & !is.null(cumpophaz)) {
stop("please provide pophaz variable in the data")
}
rate_data <- data.frame(pophaz, cumpophaz)
return(rate_data)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.