epi_write_df | R Documentation |
This function constructs a file path using a specified subdirectory, file name, and suffix, then writes a data frame to that file. It is designed for flexibility in saving results with standardized naming conventions.
epi_write_df(df, results_subdir, file_n, suffix)
df |
A data frame to be written to the file. |
results_subdir |
A character string specifying the directory where the file will be saved. |
file_n |
A character string specifying the base name of the file (without the suffix). |
suffix |
A character string specifying the file extension (e.g., "txt", "csv"). |
The full file path of the saved file. Prints a message indicating the file's location.
## Not run:
# Example usage
results_subdir <- "output"
file_n <- "desc_dates"
suffix <- "txt"
epi_write_df(sum_dates_df, results_subdir, file_n, suffix)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.