resample: Randomly take a number of elements in a vector

Description Usage Arguments Value

View source: R/fct_resample.R

Description

This function allows to pick up the last element in a vector when the parameter size is equal to 1. Passes parameters to 'sample.int' like size.

Usage

1

Arguments

x

is a vector

...

parameters given to the function sample.int

Value

a vector of length equal to size parameter.


wpm documentation built on Nov. 8, 2020, 5:34 p.m.