import_events_csv: import_events_csv

Description Usage Arguments Value

View source: R/import_events_csv.R

Description

Import events from a CSV file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import_events_csv(
  csv_path,
  stat_unit = "stat_unit",
  date = "date",
  tag = "tag",
  optional_data,
  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
)

Arguments

csv_path

A path to the csv file.

stat_unit

A string containing the stat_unit label.

date

A string containing the date label.

tag

A string containing the tag label.

optional_data

A vector containing label to import in descriptions table.

date_format_func

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.

date_format_reg

A expression to format date with (not required). Default: "ymd-HMS" For more details see this documentation.

force_date_format

Boolean to force date format func (not required). Default: FALSE

delim

The separator to read csv (not required). Default: ,

model

An AnalysR env. Default: analysr_env

Value

A boolean (TRUE if no errors)


analysr/analysr documentation built on Feb. 13, 2022, 11:22 a.m.