Description Usage Arguments Value Author(s) Examples
View source: R/geckoDatasetCreate.R
Create a Dataset to be used on Geckoboard.
1 2 | geckoDatasetCreate(df, apiKey, dataset="dummy.by_day", types,
verbose = FALSE, optional=(types == "number"))
|
df |
Data frame. Only column names are used during dataset creation. |
apiKey |
API key. |
dataset |
Name the Geckoboard dataset should get, e.g. name.by_day. |
types |
Either "date", "datetime", "number", "percentage" (between 0 and 1), "string" or "money". |
verbose |
If |
optional |
Usually numeric fields are optional. Can be modified. |
Nothing is returned.
Meinhard Ploner
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
data = data.frame(
date=c("2018-03-01", "2018-03-02", "2018-03-03", "2018-03-04"),
KPI1=c(77, 78.1, 79, NA),
KPI2=c(78, 90, 91.2, 92)
)
datasetName = "kpi.by_day"
types = c("date", "number", "number")
geckoDatasetCreate(data, account$apiKey, datasetName, types)
geckoDatasetReplace(data, account$apiKey, datasetName, types)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.