save_data_as_file: Save Data as File

View source: R/data_export.R

save_data_as_fileR Documentation

Save Data as File

Description

Save Data as File

Usage

save_data_as_file(
  input_df,
  file_name,
  delim = "|",
  with_header = FALSE,
  quote = FALSE
)

Arguments

input_df

A Data Frame. Note: can contain any arbitrary data fields.

file_name

The name of the file that will be saved (e.g. "my_data.txt").

delim

A character that will be placed between data fields, in the output file (e.g. "|").

with_header

Boolean. Will determine if the column names of input_df will be included in the output file.

quote

Boolean. If TRUE will wrap each data column in double quotes.

Details

** Saves data to local machine. **

The default location for the file to be saved is in a folder called "sensitive". If this folder does not exist, this function will not work.

Value

Returns nothing.


dsu-effectiveness/utHelpR documentation built on April 26, 2024, 12:24 p.m.