segment_define: Make a segment definition

View source: R/segments.R

segment_defineR Documentation

Make a segment definition

Description

Defines the segment to be a set of SegmentFilters which are combined together with a logical AND operation.

segment_define is in the hierarchy of segment creation, for which you will also need:

  • segment_define : AND combination of segmentFilters

  • segment_vector_simple or segment_vector_sequence

  • segment_element that are combined in OR lists for ⁠segment_vectors_*⁠

Usage

segment_define(segment_filters, not_vector = NULL)

Arguments

segment_filters

A list of segment_vector_simple and segment_vector_sequence

not_vector

Boolean applied to each segmentFilter step. If NULL, assumed FALSE

Value

segmentDefinition object for segment_ga4

See Also

Other v4 segment functions: segment_element(), segment_ga4, segment_vector_sequence(), segment_vector_simple()


googleAnalyticsR documentation built on Sept. 11, 2024, 8:15 p.m.