When working with a new dataframe it is important to get an overview of the given data before diving into the project. The following functions can be used for exploring dataframes. find out what they do and how they can be used.
Getting Help with R
R includes extensive facilities for accessing documentation and searching for help. Ofcourse you could also use a general internet search engine.
?help operator in R provide access to the documentation pages for R functions, data sets, and other objects, both for packages in the standard R distribution and for intalled packages. To access documentation for the standard
strfunction, for example, enter the command
?"+"(i.e., the quotes are optional).
We have loaded in the dataframe
murders for you. Enter the commands at the correct position.
You want to see all column names of the dataframe. Store your result in an object named
You want to see the first 10 rows of the dataframe. Store your result in an object named
You want to see a technical overview of the dataframe object, revealing the internal object structure. Store your result in an object named
You want a columnwise summary of all the data in the dataframe. Store your result in an object named