Learn R Programming

googleAnalyticsR (version 1.2.0)

segment_define: 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)

Value

segmentDefinition object for segment_ga4

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

See Also

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