Learn R Programming

Causata (version 4.1-0)

Config.CreatePrimaryVariable: Defines a Causata primary variable.

Description

This function attempts to add a new variable to variable set configured in Causata.

Usage

Config.CreatePrimaryVariable(causata.config, variable.name, 
                             variable.display.name=variable.name, 
                             variable.expression)

Arguments

causata.config
An object from CausataConfig.
variable.name
The internal system-name of the variable to create.
variable.display.name
The user-visible name of the variable to create.
variable.expression
The variable expression that defines the variable.

Value

  • TRUE if the variable definition succeeded. Otherwise, the response from the server (including error messages) is returned.

See Also

CausataConfig.

Examples

Run this code
# The settings below are not for an actual server, 
# they are for illustration purposes only.
causata.config <- CausataConfig("server.causata.com","8002",
  "causatauser","Bg20qydd6*")

# the command below is commented out since it requires a live server to run
#result <- Config.CreatePrimaryVariable(causata.config, 
#  variable.name="online-has-page-view", 
#  variable.display.name="Online: Has Page View", 
#  variable.expression="INCLUDES page-view")

Run the code above in your browser using DataLab