library(DescTools) Mode(name) # make sure to inculde this libirary before you use the function # install if necessary # name is the dataset's name you want to get it's mode