dw_update_chart_ifnewdata: Update datawrapper chart if new data is available

fuzzy_compareR Documentation

Update datawrapper chart if new data is available

Description

Update datawrapper chart if new data is available

Usage

fuzzy_compare(df1, df2, tolerance = 0.1, ignore_case = TRUE)

dw_update_chart_ifnewdata(
  dw_id,
  api_key,
  new_data,
  annotate_text = "",
  timestamp_update = F,
  timestamp_text = "Actualisé le ",
  date_format = "%d %B %Y"
)

Arguments

df1, df2

data frames to compare

tolerance

a numeric scalar, the tolerance for comparison

ignore_case

a logical scalar, if TRUE, the comparison will be case-insensitive

dw_id

a character sclalar, datawrapper id

api_key

a character scalar, datawrapper api key

new_data

a data.frame, the new data

annotate_text

a character scalar, the text for the annotation that will be before the timestamp

timestamp_update

a logical scalar, if TRUE, the timestamp will be added at bottom of the chart

timestamp_text

a character scalar, the text for the timestamp

date_format

a character scalar, the date format

Value

a boolean scalar. TRUE if similar, FALSE otherwise

a boolean scalar. TRUE if the chart is updated, FALSE otherwise


d-qn/dqnTheme documentation built on April 17, 2025, 3:58 a.m.