Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

filtersLogic

Combining filters


Description

Creates a function which returns the corresponding logical operation between what f and g return.

Usage

## S3 method for class 'BaseFilter'
!f

## S3 method for class 'BaseFilter'
f & g

## S3 method for class 'BaseFilter'
f | g

Arguments

f, g

Arbitrary BaseFilter class functions.

Details

See BaseFilter and MessageFilters for further details.

Examples

not_command <- !MessageFilters$command
text_and_reply <- MessageFilters$text & MessageFilters$reply
audio_or_video <- MessageFilters$audio | MessageFilters$video

telegram.bot

Develop a 'Telegram Bot' with R

v2.4.0
GPL-3
Authors
Ernest Benedito [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.