flag_vars: Flag Variables for Mismatches

Description Usage Arguments Value Examples

View source: R/flag_vars.R

Description

flag_vars is a utility function for comparing two vectors for equality. Messages indicating locations of mismatches are printed to the console.

Usage

1
flag_vars(x, y)

Arguments

x

A vector of any type

y

A vector of any type

Value

boolean True or False indicating if all elements of x are equivalent to y. #'

Examples

1
2
3
4
5
6
7
8
## Not run: 
flag_vars(x = 1:10, y = 1:10)
set.seed(77)
dat <- data.frame(V1 = sample(1:2, 10, replace = TRUE), V2 = sample(1:2, 10, replace = TRUE))
dat
flag_vars(x = dat$V1, y = dat$V2)

## End(Not run)

mattsigal/mmisc documentation built on May 21, 2019, 1:26 p.m.