You are looking for the function setdiff
setdiff(vectorB$id, vectorA$id)
If you did not want this reduced to unique values, you could create a not in
function
(kudos to @joran here Match with negation)
'%nin%' <- Negate('%in%')
vectorB$id[vectorB$id %nin% vectorA$id]