rtweet (version 0.3.6)

xiny: xiny

Description

Returns logical value indicating whether named object includes var name. Functions do the following:

Usage

x %xy% y

Arguments

x

Character, name of variable of interest.

y

Named object on which to search for x.

Value

Logical vector of length length(x).

Details

  • %xy% returns logical for each value of x

  • %any% returns TRUE if y contains any of x

  • %all% returns TRUE if y contains all of x

Examples

Run this code
# NOT RUN {
# mpg in mtcars
"mpg" %xy% mtcars

# year not in mtcars
"year" %xy% mtcars

# check each name
c("mpg", "year") %xy% mtcars

# check for any
c("mpg", "year") %any% mtcars

# check for all
c("mpg", "year") %all% mtcars

# }

Run the code above in your browser using DataCamp Workspace