


# Martin Scorsese : 16 Median :2004 Median :106.0 # Around the World in 80 Days: 2 Biography:135 # A Nightmare on Elm Street : 2 Action :738 Note the similarities and differences between the output produced by running str(). This gives us a pretty good idea of what is in the data frame, the understanding of which is crucial to our analytic endeavors.Īnother great function to help us perform a quick, high-level overview of our data frame is summary(). The console also lists each variable by name, the class of each variable, and a few instances of each variable.
#Correlation in stata movie
In this particular data frame, you can see from the console that 2961 observations of 11 variables are present.Īs a side note, even if each movie was only an hour long, you’d need to watch movies non-stop for over four months to see them all! # $ director : Factor w/ 1366 levels "Aaron Schneider".: 4 968 747.

Below you can see the results of using this super-simple, helpful function str(): str(movies) # 'ame': 2961 obs. First, check out the structure of the data that is being examined. It’s a good idea, once a data frame has been imported, to get an idea about your data.
