Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View justlebeau's full-sized avatar

Justin LeBeau justlebeau

View GitHub Profile
@justlebeau
justlebeau / Vlookup.R
Created March 24, 2017 10:52 — forked from jnmaloof/Vlookup.R
A vlookup function for R
#Vlookup in R
#Version 0.3 November 12, 2013
#Return senesical results if return column is a factor
#Version 0.2 November 11, 2013
#Require first column of table to be numeric if range lookup is being done
#Change defaults to larger=FALSE
#Julin Maloof
vlookup <- function(ref, #the value or values that you want to look for
table, #the table where you want to look for it; will look in first column