save.as.csv <- function(data, path)
{
obj.name <- deparse(substitute(data))
write.csv(x = as.data.frame(data),
file = file.path(path, sprintf("%s.csv", obj.name)),
row.names = FALSE,
quote = FALSE)
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.