Learn R Programming

funModeling (version 1.9.5)

v_compare: Compare two vectors

Description

Obtaing coincident and not coincident elements between two vectors.

Usage

v_compare(vector_x, vector_y)

Value

Correlation index for all data input variable

Arguments

vector_x

1st vector to compare

vector_y

2nd vector to compare

Examples

Run this code
v1=c("height","weight","age")
v2=c("height","weight","location","q_visits")
res=v_compare(vector_x=v1, vector_y=v2)
# Print the keys that didn't match
res
# Accessing the keys not present in

Run the code above in your browser using DataLab