validateGoogleChartParameters: Validate the parameters of a Google Chart

Description Usage Arguments Value Validation rules

Description

Checks if the chosen parameters follows the validation rules for a Google Chart. It uses a data.frame as the data source.

Usage

1
2
validateGoogleChartParameters(data, table, targetVar, groupVar, timeVar, min,
  max, restrictions)

Arguments

data

A data.frame. The data source.

table

A character value. The name of the table from which the data was retrieved.

targetVar

A character vector. The name(s) of the column(s) with the target variable(s) values.

groupVar

A character. The name of the column with the group variable.

timeVar

A character. The name of the column with the time variable.

min

A numeric value or a date string in the format 'yyyy-mm-dd'. Lower bound for the timeVar

max

A numeric value or a date string in the format 'yyyy-mm-dd'. Upper bound for the timeVar

restrictions

A n x 2 matrix. The n equality restrictions that make timeVar and groupVar values unique when combined.

Value

A character. The constant .VALID if the parameters are and an error message, otherwise.

Validation rules

  1. min, max, timeVar: validateLimits

  2. timeVar, groupVar, restrictions: validateKeys

  3. timeVar, groupVar, targetVar, restrictions: validateConsistency


talithafs/dzVis-Package documentation built on May 31, 2019, 2:54 a.m.