'Obtaining column names and characteristics from a df. R

I can´t find how to print a table in the console with all the names of the variables in a data frame along with the charcatristics of each variable (column): is it integer or a character? and how many NAs each variable has.

I looking for something similar to how Rstudio shows the dataframes: enter image description here

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source