Generating a histogram by subsampling without replacement.
preseqR.nonreplace.sampling(n, size)
A two-column matrix.
The first column is the frequency
An positive integer representing the size of the subsample.
A two-column matrix as a subsample.
The first column is the frequency
preseqR.nonreplace.sampling
generates a subsample by sampling the
initial sample without replacement.
sample
in
https://stat.ethz.ch/R-manual/R-patched/library/base/html/sample.html
# NOT RUN {
## load library
library(preseqR)
## import data
data(FisherButterfly)
## generate a subsample of size 1000.
preseqR.nonreplace.sampling(n=FisherButterfly, size=1000)
# }
Run the code above in your browser using DataLab