View the first or last or random 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, ...)
Invisibly returns the results of the call to view
.
object
-- an R object to view.
numeric
-- first (default)/last/random n
elements/rows of obj
to view.
logical
-- if TRUE
, last n
elements/rows of obj
are displayed.
logical
-- if TRUE
, n
random elements/rows
(without replacement) of obj
are displayed.
logical
-- if 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.
dots
-- additional arguments (e.g., replace=TRUE
if specifying random=TRUE
).
Rowan Haigh, Program Head -- Offshore Rockfish
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
locus opus: Institute of Ocean Sciences (IOS), Sidney BC
Last modified Rd: 2019-03-12
In package PBSmodelling:
lisp
,
showArgs
,
testCol
,
viewCode
In package utils:
head
, tail