Skip to content

a more elegant approach to getting the majority level

1 message · Liaw, Andy

#
Don't know if this is more elegant:

names(which.max(table(x)))

Andy