Find the C-factor of a vote
R, 23 bytes



function(o,v)mean(o!=v)


Try it online!

The challenge boils down to computing the proportion of values in v different from o (i.e. mean(xor(o,v))). We can therefore avoid using abs.