write_to_wd: Write data frames directly to the working directory

Description Usage Arguments Value

View source: R/padis_general_functions.R

Description

The function can be used to write data frames into the working directory (or any other specified path), either as .xlsx or .csv files.

Usage

1
2
write_to_wd(data, folder = NULL, type = "xlsx", name = NULL,
  overwrite = FALSE)

Arguments

data

The data frame that should be saved

folder

The folder in whoch the data is stored. If NULL, the current working directory is used.

type

The type of the output, either "xlsx" or "csv"

name

The name of the file. If NULL, the name of the object is used.

overwrite

Logical, if TRUE, the file saved, even if it already exists. Default is to FALSE.

Value

The required output as a data file in the specified folder.


kthorstmann/padis documentation built on May 24, 2019, 5:01 a.m.