fuzzy_compare | R Documentation |
Update datawrapper chart if new data is available
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"
)
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 |
a boolean scalar. TRUE if similar, FALSE otherwise
a boolean scalar. TRUE if the chart is updated, FALSE otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.