vlookup: vlookup

Description Usage Arguments Value Examples

View source: R/pub01_utilityFuncs.R

Description

vlookup

Usage

1
vlookup(x, table, by, ret)

Arguments

x

a vector

table

a matrix, data frame or other matrix like object

by

a vector of column names or column index

ret

a vector of column names or column index

Value

a matrix, data frame or vector, corresponding with the class of table and length of ret.

Examples

1
2
3
x <- c(2,4,3)
table <- data.frame(1:4,LETTERS[1:4])
vlookup(x,table,by=1,ret=2)

QuantAndrew/QUtility documentation built on May 14, 2019, 7:36 a.m.