powered by
Display the top left corner of a rectangular data set
topleft(x, r = 5L, c = 5L, ...)
The data
Number of rows to display
Number of columns to show
Arguments passed on to other functions
... The top left corner of the data set that was requested. The size depends on r and c.
Displays the top left corner of a rectangular data set.
This is a wrapper function for corner
corner
head tail corner topright bottomleft bottomright left right
head
tail
topright
bottomleft
bottomright
left
right
# NOT RUN { data(diamonds) head(diamonds) # displays all columns topleft(diamonds) # displays first 5 rows and only the first 5 columns # }
Run the code above in your browser using DataLab