str() (R)

str() compactly displays the structure of any R object — its type, dimensions, and a preview of its contents. It is the first command analysts run to…