Learn R Programming

vistime (version 0.8.0)

validate_input: Validate input data

Description

Validate input data

Usage

validate_input(data, start, end, events, groups, linewidth, title,
  showLabels, show_labels, lineInterval, background_lines)

Arguments

data

the data

start

start dates

end

end dates

events

event column name

groups

group column name

linewidth

width of range lines

title

plot title

showLabels

deprecated, replaced by show_labels

show_labels

boolean

lineInterval

deprecated, replaced by background_lines

background_lines

interval of grey background lines

Value

the data frame with possibly new or renamed columns, or an error

Examples

Run this code
# NOT RUN {
validate_input(data.frame(event = 1:2, start = c("2019-01-01", "2019-01-10")),
  events = "event", start = "start", end = "end", groups = "group",
  linewidth = NULL, title = NULL, showLabels = NULL, show_labels = TRUE,
  lineInterval = NULL, background_lines = 11
)
# }

Run the code above in your browser using DataLab