Learn R Programming

Omisc (version 0.1.2)

resample: resample

Description

resample

Usage

resample(X, size)

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

Value

A vector of resampled X values

Examples

Run this code
# NOT RUN {
X<-c(1:10)
resample(X,.5)
# }

Run the code above in your browser using DataLab