write.simple.append: Write Simple Append

View source: R/ReadWriter.R

write.simple.appendR Documentation

Write Simple Append

Description

Appends a data frame without row names to an existing .tsv file with the same number of columns. The output filename is auto-generated from the variable's name or manually specified. The file is saved in the specified output directory or the current working directory. The path and variable name can be passed separately and will be concatenated to form the filename.

Usage

write.simple.append(
  input_df,
  filename = substitute(input_df),
  suffix = NULL,
  extension = "tsv",
  manualFileName = NULL,
  manualDirectory = NULL,
  o = FALSE,
  v = TRUE
)

Arguments

input_df

Data frame to write out. Default: None, must be provided.

filename

The base name for the output file. Default: Name of the input data frame.

suffix

An optional suffix to add to the filename. Default: NULL.

extension

File extension to use, Default: 'tsv'.

manualFileName

Manually defined filename, overrides automatic naming. Default: NULL.

manualDirectory

Directory to save the file in, overrides default directory. Default: NULL.

o

If TRUE, opens the file after writing on OS X using 'system(open ...)'. Default: FALSE.

v

verbose Print path? Default: TRUE.

Value

Appends data to an existing .tsv file.

Examples

## Not run: 
if (interactive()) {
  write.simple.append(input_df = myDataFrame)
}

## End(Not run)

vertesy/ReadWriter documentation built on Nov. 24, 2024, 10:40 p.m.