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

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()
``` |

`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 April 18, 2018, 11:11 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.