Description Usage Arguments Details Value See Also
convert_import_file is the working horse backing process_files.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
input_file |
A character of name or path of input data file,
which could use regular expression to read multiple files into a combined
dataframe, e.g. |
input_type |
A character of input file format, e.g. "txt", "csv". |
input_dir |
A path of working dir of input file, if NULL, use dir of input file as working dir, default NULL. |
start_index |
A integer of start index of first line of actual records in data file, by default 2L, which means first line is header and actual data starts from second line. |
ignore_problems |
A logic flag to determine whether to ignore problems when covert data, if TRUE, continue to import data but log problems into log file, otherwise abort reading process. By default TRUE. |
log_dir |
Path of log dir for saving problem log file, by default"./log", if the log path doesn't existed, it will be created. |
process_fun |
A function to process input file into output file. |
... |
Params to process_fun. |
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, |
Convert a raw importing file into a processed importing file though three steps:
Read import file into original dataframe by using read_import_file;
Process original dataframe into processed dataframe by using process_fun, like ttm_financial_report;
Write processed dataframe into file by using write_import_file.
TRUE if success, else FALSE.
Other data management:
clear_tables()
,
get_datasource()
,
import_table()
,
process_files()
,
read_import_file()
,
ttm_financial_report()
,
update_db()
,
write_import_file()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.