ganalytics (version 0.10.7)

Not: Not

Description

Not inverts an expression, i.e. logical NOT.

Usage

Not(object)

# S4 method for .comparator Not(object)

# S4 method for .comparator !(x)

# S4 method for .expr Not(object)

# S4 method for .expr !(x)

# S4 method for orExpr Not(object)

# S4 method for orExpr !(x)

# S4 method for .gaSegmentFilter Not(object)

# S4 method for .gaSegmentFilter !(x)

Arguments

object

An object to get the logical inverse of.

x

the object to return the logical inverse of.

Methods (by class)

  • .comparator: Return the inverse of the supplied comparison operator.

  • .comparator: Return the inverse of the supplied comparator.

  • .expr: Invert the comparator of a condition expression.

  • .expr: Invert the comparator of the condition expression.

  • orExpr: Invert an OR expression using De Morgan's Theorem.

  • orExpr: Invert an OR expression using De Morgan's Theorem.

  • .gaSegmentFilter: Invert the negation of a segment filter condition, i.e. include <-> exclude

  • .gaSegmentFilter: Invert the negation of a segment filter condition, i.e. include <-> exclude

See Also

Other boolean functions: And, Or, xor

Examples

Run this code
# NOT RUN {
source_matches_google <- Expr(~source %matches% "google")
source_not_matching_google <- Not(source_matches_google)
identical(source_not_matching_google, !source_matches_google)

# }

Run the code above in your browser using DataCamp Workspace