my.copy.fct: Copies data to external file

Description Usage Arguments Value Examples

View source: R/gdfpd_export_DFP_Data.R

Description

Copies data to external file

Usage

1
2
3
4
5
6
7
my.copy.fct(
  df.in,
  name.df,
  base.file.name,
  type.export = "xlsx",
  csv.dir = tempdir()
)

Arguments

df.in

Dataframe to be copied

name.df

Name of dataframe to be copied

base.file.name

The basename of excel file (make sure you dont include the file extension)

type.export

The extension of the desired format: 'xlsx' (default) or 'csv'

csv.dir

Location where to save csv files prior to zipping (default = tempdir())

Value

TRUE (invisible), if successfull

Examples

1
2
3
4
5
6
test.data <- data.frame(test.data = runif(100))
name.df <- 'TestData'
base.file.name <- 'TestData'
type.export <- 'csv'

my.copy.fct(df.in = test.data, name.df, base.file.name, type.export)

msperlin/GetDFPData documentation built on April 6, 2021, 4:52 a.m.