R - match(): identify elements in vector

26 Aug 2017

set.seed(5)
x <- c(1, 4, 5, 80)
y <- c(2, 9, 8, 4, sample(15), 1)
match(x,y)

viewed on http://rfunction.com

[ R  function  vector  ]