bu_save: Save Dataframe to .rds or .csv with Backup File

Description Usage Arguments Examples

View source: R/useful_functions.R

Description

Saves a dataframe to the specified location and creates another backup file with date-time extension (yy-mm-dd_HH-MM-SS)

Usage

1
bu_save(x, full_path, compress = c("none", "gz"))

Arguments

x

A dataframe

full_path

The full path containing the folder and filename with file extension

compress

Only available for .rds files (one of 'none' or 'gz')

Examples

1
2
3
4
library(RFtex)

df <- tibble::tibble(col = c(1,2,3))
bu_save(df, "test_df.rds", "none")

M2UCT/RFtex documentation built on May 25, 2019, 4 a.m.