n elements or rows of an object.
Components of lists will be subset using iterative calls to view.
view(obj, n=5, last=FALSE, random=FALSE, print.console=TRUE, ...)n elements/rows of obj to view.TRUE, last n elements/rows of obj are displayed.TRUE, n random elements/rows
(without replacement) of obj are displayed.TRUE, print the results to the console (default).
The results are also returned invisibly should the user wish to assign the output to an object.replace=TRUE if specifying random=TRUE).view.
head and tail exist in the package utils.