save_csv_carl: Custom save to .csv function

Description Usage Arguments

View source: R/save_csv_carl.R

Description

This function saves data.tables or data.frames as .csv in the root working directory or a specified subfolder. Additionally the current date is automatically included in the file name.

Usage

1
2
save_csv_carl(file = NA, file_name = NA, subfolder = NA,
  create_subfolder = F, sep = ",", quote = F)

Arguments

file

The data.table or data.frame to be saved.

file_name

Character string that specifies the name the saved file should have The date of creation and the .csv ending are added automatically

subfolder

A character string without "/" giving the subfolder the file shall be saved in.

create_subfolder

Given a subfolder, setting this to TRUE will create a new directory with the name given in subfolder and will stop if set to FALSE

sep

the field separator string. Values within each row of x are separated by this string.

quote

a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any character or factor columns will be surrounded by double quotes. If a numeric vector, its elements are taken as the indices of columns to quote. In both cases, row and column names are quoted if they are written. If FALSE, nothing is quoted.


cfbeuchel/CarlHelpR documentation built on Dec. 24, 2019, 8:08 p.m.