I have 2 datasets.
A = 3085 rows, 1 column.
B = 527 rows, 1000 columns.
All values in both of these datasets are the names of shapefiles.
I would like to create a new list of A – B[,1]. A.k.a I would like to remove any values from A that appear in the first column of B.
I will eventually be looping this for all 1000 columns.
If anyone can help, it would be much appreciated.
Regards,
If
AandBaredata.framesormatricesyou can use such procedureI just now realized fully your question. To loop on all columns of
Byou can useapplyfamily function. This call will iterate each column ofBasxparameter and will return list of length equal to the number of columns ofB, each element of the list will be a vector of mismatched elements ofAto corresponding column ofB.