Compare this output to what we saw when we viewed results by clicking on its name in the environment. Printing a data object like results gives us formatted output, and it does not simply show the data elements it stores. Some functions handle these different object classes differently, and these are called generic functions. The head() and tail() functions printed x and dataset differently, even though these two contain the same values. How an object is printed depends on its class. To see just a few of the data values, we can use the head() or tail() functions, which give the first or last six values or rows by default. 10.1 What packages are already installed?įor basic data objects, printing them will show us the data values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |