#' Save a .csv file representation of an R object with the object name
#'
#' Uses "write.csv" with presets to save a .csv of an object and uses the
#' object's name to name the .csv file.
#'
#' @param object the object to save.
#' @keywords export, save, csv
#' @export
#' @examples
#' test <- 1:10
#' save_csv(test)
save_csv <-
function(object) {
write.csv(object,
paste0(
deparse(substitute(object)),
".csv"
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.