Learn R Programming

SciencesPo (version 1.3.6)

view: View random n elements of an object.

Description

Provide a sly view of the data by randomly drawn observations, instead of showing only the first head() or the last tail() rows of an object, though it is also possible to constrain for the first/last elements.

Usage

view(data = .data, n = 10, random = TRUE, tail = FALSE,
  print.console = TRUE, ...)

Arguments

data
A matrix or data.frame object
n
The number of rows to be shown
random
If TRUE, observartions are sampled.
tail
If TRUE, will show n lines from tail.
print.console
If TRUE, dada will be printed on console.
...
Some additional parameters.

encoding

UTF-8

Examples

Run this code
view(titanic)

Run the code above in your browser using DataLab