How dataframes work in R, Pands and tidyverse