field_calculator: Field calculator for regular scale

Description Usage Arguments Details

View source: R/internal_bc.R

Description

internal function for calculating the extra fields needed for bullet charts

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
field_calculator(
  file_name = NULL,
  sheet_name = "Sheet1",
  dataframe = NULL,
  indicator_name = "variable",
  info = "info",
  current = "current",
  low = "low",
  medium = "medium",
  high = "high",
  target = "target",
  remove_no_targets = TRUE
)

Arguments

file_name

path of Excel file

sheet_name

specify which sheet in Excel file

dataframe

specify R dataframe input

indicator_name

specify the name of the column that has your indicator/KPI names

info

extra info for indicators (currency, percentage, symbol, etc.)

current

current value of indicator

low

column with value for "low"

medium

column with value for "medium"

high

column with value for "high"

target

column with value for the "target"

remove_no_targets

Removes indicators without a "target" value specified, default: TRUE

Details

internal function for calculating the extra fields for the bullet chart


ACDIVOCATech/bulletchartr documentation built on July 28, 2020, 8:49 p.m.