Implementation of an unsanitary program's infamous function.

myVLOOKUP(df, lookupValue, lookupColumn, returnColumn)

Arguments

df
A data frame to lookup values and return values.
lookupValue
The value to be looked up.
lookupColumn
The column in which to lookup the lookupValue.
returnColumn
The column where values will be extracted for matches found in lookupColumn.