powered by
Loosely replicates the behavior of the homonym Matlab function
setdiff(A, B, legacy = FALSE)
An array containing he elements which are in A but not in B
first array
second array
if TRUE, preserves the behavior of the setdiff function from MATLAB R2012b and prior releases. (currently not supported)
TRUE
Waldir Leoncio
A <- c(3, 6, 2, 1, 5, 1, 1) B <- c(2, 4, 6) setdiff(A, B)
Run the code above in your browser using DataLab