Last chance! 50% off unlimited learning
Sale ends in
Tests whether a segment filter is negated.
Sets the negation flag of a segment filter.
IsNegated(object)IsNegated(object) <- value
# S4 method for .gaSegmentFilter
IsNegated(object)
# S4 method for .gaSegmentFilter,logical
IsNegated(object) <- value
An object belonging to the superclass .gaSegmentFilter
.
The value of the negation slot, either TRUE
or
FALSE
.
.gaSegmentFilter
: Tests whether a segment filter is negated, i.e. used to
define an exclude filter for the segment.
object = .gaSegmentFilter,value = logical
: Sets whether a segment filter should be negated, i.e.
used as an exclude filter in a segment definition.
Other dynamic segment functions: DynSegment
,
Exclude
, Include
,
PerHit
, PerProduct
,
PerSession
, PerUser
,
ScopeLevel
,
SegmentConditionFilter
,
Segments
, Segment
Other dynamic segment functions: DynSegment
,
Exclude
, Include
,
PerHit
, PerProduct
,
PerSession
, PerUser
,
ScopeLevel
,
SegmentConditionFilter
,
Segments
, Segment
# NOT RUN {
exclude_one_time_shoppers <- Exclude(
Expr(~transactions == 1, metricScope = "perUser"),
scope = "users"
)
IsNegated(exclude_one_time_shoppers) # TRUE
# }
Run the code above in your browser using DataLab