Find the n most common values in a vector [duplicate] Find the n most common values in a vector [duplicate] r r