#' @import data.table
ident = function(data) {
party = NULL; date = NULL; value = NULL; . = NULL # WARNINGS
return (toLong(data)[!is.na(value), .(value = mean(value)), by=.(date, party)])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.