What function is commonly used to view the structure of a data frame in R?

  • str()
  • summary()
  • view()
  • head()
The str() function is commonly used to view the structure of a data frame in R. The str() function displays a concise summary of the structure of the data frame, including the variable names, data types, and a preview of the data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *