Hello ! I'm a new user of R and i'm struggling a bit with my dataset !

I'd really be happy if someone could give me a hand or help find somewhere i can find help.

I have two vectors. For example :

A = c(a, b, c, d, ...)

B= c(a', b', c', d', ...)

I need a function that would tell me if a=a', b=b' ...

Thank you in advance !!