
Arcenis R. answered 01/30/24
Tutor
5.0
(128)
Expert R user and developer
If you are using RStudio, you can simply enter the command View(df) and it will appear in the data viewer. However, if you only have the console available to you or are running your code on a platform without a data viewer, you can enter the command print(df, n = nrow(df)).