https://www.datamentor.io/r-programming/data-frame/ Check if a variable is a data frame or not We can check if a variable is a data frame or not using the class() function. > x SN Age Name 1 1 21 John 2 2 15 Dora > typeof(x) # data frame is a specia…