Tomaz Kastrun takes us through the structure()
function in R:
Structure() function is a simple, yet powerful function that describes a given object with given attributes. It is part of base R language library, so there is no need to load any additional library. And also, since the function was part of S-Language, it is in the base library from the earlier versions, making it backward or forward compatible.
Read on to see how you can create a matrix or data frame using this function and additional details you can save.