write_import_file: Write a raw file for importing to stock db

Description Usage Arguments Value See Also

Description

Write a dataframe as import file. If output file existed, original file will be backed up.

Usage

1
2
3
4
5
6
write_import_file(
  ds_output,
  output_file,
  output_type = c("csv", "txt"),
  output_dir = NULL
)

Arguments

ds_output

A name or a path of input data file.

output_file

A name or a path of input data file.

output_type

A character of output file format, e.g. "txt", "csv".

output_dir

A path of working dir of output file, if NULL, use dir of output file as working dir, by default NULL,

Value

NULL invisibly. Raise error if anything goes wrong.

See Also

Other data management: clear_tables(), convert_import_file(), get_datasource(), import_table(), process_files(), read_import_file(), ttm_financial_report(), update_db()


chriszheng2016/zstmodelr documentation built on June 13, 2021, 8:59 p.m.