rhead: Random Head

Description Usage Arguments Details Value Examples

Description

Small Random Sample from a vector or data.frame

Usage

1
rhead(data, rows = 7, is.random = TRUE)

Arguments

data

A vector or data.frame from which a small sample is to be returned

rows

A positive integer, representing the number of lines or elements to print, default is 7.

is.random

a boolean. If TRUE, a random sample is drawn, else it takes the head() of the data

Details

If the rows parameter is greater than the actual number of rows/elements of the data, the returned value is the initial dataset after shuffling

Value

A random sample without replacement taken from the data, in the same format than the input.

Examples

1
2

GuessCompx documentation built on June 3, 2019, 5:04 p.m.