ezr.compare_vects: Compare values in a vector/dataframe Compare the column names...

Description Usage Arguments Value

Description

Compare values in a vector/dataframe Compare the column names or values in a vector. Determine which is present in one and not the other or present in both Allows comparing of passing df and a vector directly by handling the column name conversion to vector within function.

Usage

1
2
ezr.compare_vects(x, y, only_return_in_x_not_y = FALSE,
  only_return_in_y_not_x = FALSE, only_return_in_both = FALSE)

Arguments

x

Either a vector or a dataframe

y

Either a vector or a dataframe

only_return_in_x_not_y

Default is FALSE along with other params. If all are false, then returns a list of each value. Otherwise only 1 can be true. Returns the vector of names that is in x but not in y

only_return_in_y_not_x

See above

only_return_in_both

See above.

Value

Returns either a vector or a list given params.


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.