Skip to content
Prev 286649 / 398502 Next

vlookup type function

On Tue, Feb 28, 2012 at 09:02:04PM +0530, Priyan Fernando wrote:
Hi.

Try the following.

  unlist(lapply(base, FUN = function(x) max(list[list <= x])))

Hope this helps.

Petr Savicky.