samp: Sample of an object.

Description Usage Arguments Value

View source: R/samp.R

Description

Shortcut for checking on data.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
samp(x, n)

## S3 method for class 'data.frame'
samp(x, n = 10)

## S3 method for class 'matrix'
samp(x, n = 10)

## Default S3 method:
samp(x, n = 10)

Arguments

x

data.frame (or matrix) to sample from

n

number of rows to sample (default is 10)

Value

n random rows of x


gregorp/gregor documentation built on May 17, 2019, 8:36 a.m.