Learn R Programming

SciencesPo (version 1.02.12)

peek: Show Observations Randomly Drawn from the Data

Description

Provide a sly view of the data by randomly draw observations, instead of showing only the first head() or the last tail() rows of an object.

Usage

peek(x, n = 10)

Arguments

x
A matrix or data.frame object
n
The number of rows to be shown

encoding

UTF-8

Examples

Run this code
data(titanic)
peek(titanic)

Run the code above in your browser using DataLab