Test if the “vector” oldCoord
is a row of the data frame newCoord
# do not use apply otherwise always TRUE
newInOld <- foreach(i = 1:nrow(newCoord), .combine='c') %dopar% {
nrow(merge(newCoord[i,], oldCoord)) > 0
}
Test if the “vector” oldCoord
is a row of the data frame newCoord
# do not use apply otherwise always TRUE
newInOld <- foreach(i = 1:nrow(newCoord), .combine='c') %dopar% {
nrow(merge(newCoord[i,], oldCoord)) > 0
}
R
data_frame
logic
]