vlookup: Mock Excel "VlookUp" Function

Description Usage Arguments Details Value See Also Examples

Description

A function that mimics excels vlookup, but for R's dataframe.

Usage

1
vlookup(lookup_vector, df, match_var, return_var)

Arguments

lookup_vector

A vector of items to look up.

df

The dataframe to search.

match_var

The column name to search in the dataframe.

return_var

The column of data to return when matched.

Details

A function that works like the VLOOKUP function in excel. This function was borrowed from https://www.r-bloggers.com/an-r-vlookup-not-so-silly-idea/.

Value

A vector that contains the items of interest.

See Also

Other Data Manipulators: convert_proportions, metacoder_comp_func_1, transformer, transposer

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

vallenderlab/MicrobiomeR documentation built on Aug. 30, 2019, 11:24 p.m.