import_measures_csv.Rd
Import measures from a CSV file.
import_measures_csv(
csv_path,
stat_unit = "stat_unit",
date = "date",
tag = "tag",
value = "value",
optional_data,
status = "status",
date_format_func = (function(x) lubridate::parse_date_time(x, date_format_reg)),
date_format_reg = "ymd-HMS",
force_date_format = FALSE,
delim = ",",
model = analysr_env
)
A path to the csv file.
A string containing the stat_unit label.
A string containing the date label.
A string containing the tag label.
A string containing the value label.
A vector containing label to import in descriptions table (not required).
A string containing the status label.
A function to format date with (not required).
Default: lubridate::parse_date_time(x, date_format_reg)
If you want to use milliseconds look at this.
A expression to format date with (not required).
Default: "ymd-HMS"
For more details see this documentation.
Boolean to force date format func (not required).
Default: FALSE
The separator to read csv (not required).
Default: ,
An AnalysR env.
Default: analysr_env
A boolean (TRUE
if no errors)