| save_table | R Documentation |
Saves a data frame or tibble to the configured tables directory. The directory is created lazily on first use.
save_table(data, name, format = "csv", public = FALSE, overwrite = TRUE, ...)
data |
A data frame, tibble, or other tabular data |
name |
The name for the output file (without extension) |
format |
Output format: "csv" (default), "rds", "xlsx", or "parquet" |
public |
If TRUE, saves to public outputs directory (for project_sensitive type) |
overwrite |
If TRUE, overwrites existing files (default: TRUE) |
... |
Additional arguments passed to the underlying write function |
The path to the saved file (invisibly)
if (FALSE) {
# Save a simple table
save_table(my_results, "regression_results")
# Save as Excel
save_table(my_results, "regression_results", format = "xlsx")
# Save to public directory (for sensitive projects)
save_table(summary_stats, "summary", public = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.