Description Usage Arguments Details Value Author(s) See Also Examples
This function defines variable information, including the name, description, and labels, for creating new variables in Causata.
1 2 3 4 5 6 7 8 | VariableDefinition(name, display.name = name, description = name,
labels = list(),
author = Sys.info()[["user"]],
timestamp = as.integer(1000 * as.numeric(format(Sys.time(), "%H%M%OS3"))),
archived = FALSE,
categorizing.attribute = "",
output.value.count = -1,
data.type = "double")
|
name |
The variable system name. Only letters, numbers, and dashes are allowed in the name, e.g. |
display.name |
The variable display name as it will be shown in Causata, e.g. |
description |
A brief description of the variable, which will be displayed in Causata. |
labels |
A list of optional variable labels, used for categorization. |
author |
The variable author name. |
timestamp |
The timestamp for when the variable was created. The format is milliseconds from the Unix epoch, Jan 1 1970, 00:00 UTC. |
archived |
A boolean indicating if this variable is archived or not. |
categorizing.attribute |
Name of the Causata attribute used to categorize the output. |
output.value.count |
The number of output values. |
data.type |
The data type of the output. Allowable values are "double", "float", "long", "integer", or "short". |
Consult your Causata documentation for more information about variables in Causata.
An object of class VariableDefinition is returned.
David Barker <support@causata.com>
1 2 3 4 | variable.definition <- VariableDefinition(name="most-recent-product-viewed",
display.name="Most Recent Product Viewed",
description="The most recent product viewed online.",
labels=list("online","products"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.