data_processing: Process data before visualisation.

Description Usage Arguments Value

View source: R/data_processing.R

Description

Process data before visualisation.

Usage

1
2
3
4
data_processing(data = NULL, var_date = NULL, format_date = NULL,
  vars_meas = NULL, vars_groups = NULL, vars_event = NULL,
  vars_descr = NULL, ID = NULL, type_vis = "timeseries",
  time_frame = "all", sel_period = NULL, sel_period_zoom = NULL)

Arguments

data

A dataframe.

var_date

A string with the name of the date-variable.

format_date

A string with the format of the date (e.g., "ymd", "ymd_HM").

vars_meas

A vector of variable names that need to be visualised.

vars_groups

A vector of specific variable names that are in vars_meas.

vars_event

A vector of names of variables that describe events.

vars_descr

A vector of names of variables that describe events.

ID

A list that must contain the elements ID_var and ID; ID_var must be a string with a variable name, and ID must be a string of the unique identifier.

type_vis

The type of visualisation required; the options are "timeseries" (default), "zoom", "barchart", and "network".

time_frame

A vector with the first and last measurement.

sel_period

A vector with the first and last measurement for selecting a specific period.

sel_period_zoom

A vector with the first and last measurement for selecting a specific period in the "zoom" graph.

Value

A list with one or two dataframes for visualisation.


gertstulp/ESMvis documentation built on May 17, 2019, 11:16 p.m.