I assume you mean data.frame rather than database... please clarify if not.
I recommend that you learn and make use of tidyverse as it is very flexible to do the sorts of things you want.
A good free resource is https://r4ds.had.co.nz/
I am trying to look for sthg in package purrr, and I have seen the map functions in which you are able to detail what you want.
But I need to add to these functions which columns I want to include, as 2000:2077. Also I need to specify NA.RM = T, and just operate with numeric or double.
I guess it is not that hard to perform but, I have not found threads performing just a range of columns. I need that because I have too many columns to perform everything, but not that many to customize