Use dim() on a data.frame object

USAGE:

dim.data.frame(x) 

ARGUMENTS:

x
a data frame, or an object that inherits from data frames.

VALUE:

a vector containing the number of rows and the number of columns in x.

DETAILS:

This function is a method for the generic function for class data.frame. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.