sampleSorted: Sample a vector after sorting the vector and applying the...

Description Usage Arguments

Description

Sample a vector after sorting the vector and applying the seed, and functions for setting seeds in Rstox.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sampleSorted(x, size, seed = 0, by = NULL, replace = TRUE,
  sorted = TRUE, drop = FALSE)

setSeedSingle(seed)

getSeedV(seed, nboot)

getSeedM(i, seedV, nrow)

expandSeed(seed, nboot)

getSequenceToSampleFrom()

Arguments

x

A vector or a single integer.

size

A non-negative integer giving the number of items to choose.

seed

The seed to apply before sampling.

by

The name of the column to sample by when sampling rows of a data frame.

replace

Should sampling be with replacement?

sorted

Should the data be sorted prior to sampling?

drop

Should data frames be dropped when sampling?

nboot

The number of bootstrap replicates (for the functions used by bootstrapping and imputing).

i

The index of the bootstrap replicate to generate seeds for.

seedV

A vector of seeds.

seed

A single seed.


Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.