Learn R Programming

RSiteCatalyst (version 1.4.16)

BuildClassificationValueSegment: Build a Classification Value Segment

Description

Function to build a classification value segment for use in segmenting reports.

Usage

BuildClassificationValueSegment(element, search.keywords, classification = "",
  search.type = "OR")

Arguments

element

List of elements on which to base the segment

search.keywords

List of search keyword vectors for each element (Use ^ to pin to start and $ to pin to end, or both to specify exact match)

classification

(optional) Classification breakdown name for the element (defaults to the element name)

search.type

How to combine the keywords list. This defaults to 'OR' if it is not specified.

Value

Segment definition for use with Queue* functions

Details

Function to build a classification value segment for use in segmenting reports.

Multiple segments can be combined in a list. Note that search can only be applied to a breakdown classification and not an element value.

Examples

Run this code
# NOT RUN {
vistor_segment <- BuildClassificationValueSegment(element,
                                                  search.keywords,
                                                  classification,
                                                  search.type)
# }

Run the code above in your browser using DataLab