Learn R Programming

vistime (version 0.8.0)

fix_columns: Standardize column names

Description

Standardize column names

Usage

fix_columns(data, events, start, end, groups, tooltips)

Arguments

data

input data frmae

events

event column name

start

name of start column

end

name of end column

groups

name of group column

tooltips

column name of tooltips

Value

the data frame prepared for plotting

Examples

Run this code
# NOT RUN {
fix_columns(data.frame(
  event = 1:4,
  start = c("2019-01-01", "2019-01-10"),
  end = c("2019-01-01", "2019-01-10"),
  events = "event", start = "start", end = "end",
  groups = "group", tooltips = "tooltip"
))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab