Learn R Programming

Omisc (version 0.1.5)

resample: resample

Description

resample

Usage

resample(X, size)

Value

A vector of resampled X values

Arguments

X

A vector to be resamples

size

The size of the resulting vector. Should be a number such that size*nrow(X) is a whole number

Examples

Run this code
X<-c(1:10)
resample(X,.5)

Run the code above in your browser using DataLab