shuffle: Shuffle

Description Usage Arguments Details Value Author(s) See Also

View source: R/shuffle.R

Description

Same as sample but it avoids the problem occured by a variable size of x

Usage

1
shuffle(x, size, replace = FALSE, prob = NULL)

Arguments

x, size, replace, prob

same as sample

Details

This function is almost identical to sample. But, if 'x' was given with a single value, this returns the given value instead of the random sampling of 1:(the value) of the sample.

Value

a vector

Author(s)

Mun-Gwan Hong, mungwan@gmail.com

See Also

sample


Rundmus/Useful2me-R_package documentation built on Nov. 13, 2020, 4:16 p.m.