Create vintages table from CSV or TXT files
Usage
create_vintages_from_csv(
file,
type = c("long", "horizontal", "vertical"),
periodicity,
date_format = "%Y-%m-%d",
...
)Arguments
- file
character containing the name of the file which the data are to be read from.
- type
character specifying the type of representation of the input between
"long","horizontal"and"vertical"approach.- periodicity
Integer. Periodicity of the time period (12, 4 or 1 for resp. monthly, quarterly or annual data)
- date_format
characterstring corresponding to the format used in the input data.frame for the revision dates.- ...
Arguments to be passed to
read.csv(), for example:septhe field separator characterdecthe character used in the file for decimal points.row.namesa vector of row namesskipinteger, the number of lines of the data file to skip before beginning to read data....
See also
create_vintages_from_xlsx(), create_vintages() which this function wraps.