ganalytics (version 0.10.7)

IsNegated: IsNegated

Description

Tests whether a segment filter is negated.

Sets the negation flag of a segment filter.

Usage

IsNegated(object)

IsNegated(object) <- value

# S4 method for .gaSegmentFilter IsNegated(object)

# S4 method for .gaSegmentFilter,logical IsNegated(object) <- value

Arguments

object

An object belonging to the superclass .gaSegmentFilter.

value

The value of the negation slot, either TRUE or FALSE.

Methods (by class)

  • .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.

See Also

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

Examples

Run this code
# 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