Skip to contents

Common Names in two Objects with Names Attribute

Usage

commonNames(x, y)

Arguments

x

object with names attribute, e.g. data.frame, named vector

y

object with names attribute, e.g. data.frame, named vector

Value

vector of names occurring in both x and y

Examples

x <- data.frame(a = 1:2, b = 2:3)
y <- c(a = 1, c = 2)