Obtaing coincident and not coincident elements between two vectors.

v_compare(vector_x, vector_y)

Arguments

vector_x

1st vector to compare

vector_y

2nd vector to compare

Value

Correlation index for all data input variable

Examples

v1=c("height","weight","age") v2=c("height","weight","location","q_visits") res=v_compare(vector_x=v1, vector_y=v2)
#> Coincident in both: 2
#> Rows not present in X: 2
#> Rows not present in Y: 1
# Print the keys that didn't match res
#> $present_in_both #> [1] "height" "weight" #> #> $rows_not_in_X #> [1] "location" "q_visits" #> #> $rows_not_in_Y #> [1] "age" #>
# Accessing the keys not present in