The tail() function is used to get the last rows of a vector or data frame. By default, it will print out the last 6 rows of the object, but you can also specify the number of rows you would like to print out.
The tail() function is similar to the head() function, however, the head() function will print out the first 6 rows (or the number specified), instead of the last 6 rows (see the head() function).
Example 1:
# Print out the last 6 rows of MindsetMatters
Example output:
Example 2:
# Print out the last 10 rows of MindsetMatters
tail( MindsetMatters , 10)
Example output: