absolute difference between 2 vectors r code example
Example: r find difference between two vectors
# setdiff gives the the difference of the 1st compared to the second.
setdiff(b,a)
# setdiff gives the the difference of the 1st compared to the second.
setdiff(b,a)