Description Usage Arguments Value
View source: R/createDataset.R
Create a new dataset in a Numetric Org.
This function uses the V2 version of the API.
1 2 3 | createDataset(apiKey, numetricName, dataframeName, category = "New Data",
primaryKey, autocompletes = "", geoshapes = "", geopoints = "",
boolean = "", everyone = "false")
|
apiKey |
You can find the API key in the settings after logging into Numetric |
numetricName |
The name, in quotes, given to the dataset in the Numetric Warehouse. |
dataframeName |
The name, without quotes, of the dataframe that will be used to create the dataset in Numetric. |
category |
The category, in quotes, given to the dataset in the Numetric Warehouse. |
autocompletes |
The column name, or vector of column names, in quotes, that will autocomplete in the Numetric quick search bar. |
geoshapes |
The column name, or vector of column names, in quotes, that will be stored as a geoShape (point on a map). This needs to be in the format, "lat,long". |
geopoints |
The column name, or vector of column names, in quotes, that will be stored as a geoPoint (for heatmaps). This needs to be in the format, "lat,long". |
boolean |
The column name, or vector of column names, in quotes, that will be stored as True/False. True = 1, False = 0. |
everyone |
Defaults to "false". If set to "true", then it will allow everyone in the org to see the dataset. |
id |
The name of the column, in quotes, that will be used as the primary key. Each row should have a unique id, otherwise, the last row indexed will be the one saved. |
Returns the dataset id as a string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.