Sorting columns and counting

filter() operates on rows, not columns. So you'll probably need to reshape your data first. Would it be possible for you to prepare a minimal reproducible example of the videogames data set. See the guide below for instructions.