Learn R Programming

dataCompare (version 1.0.5)

same_variables: Detect common variables in two dataset

Description

Detect common variables in two dataset

Usage

same_variables(df1, df2)

Value

a Character vector containing all variables names in both df1 and df2

Arguments

df1

the first dataset to use

df2

The second dataset to use

Examples

Run this code
same_variables(iris, iris)
same_variables(mtcars, mtcars)

Run the code above in your browser using DataLab