powered by
An extension of sample to objects of class “freqtab” for bootstrap sampling.
sample
freqtab
sample.freqtab(x, size = sum(x), replace = TRUE)
object of class “freqtab”, which is an array of counts across one or more numeric dimensions.
non-negative integer giving the sample size.
logical with default TRUE indicating whether sampling should be with replacement.
TRUE
A table array, as a “freqtab” object, sampled from the original x.
x
table, ftable, summary.freqtab, plot.freqtab
table
ftable
summary.freqtab
plot.freqtab
# NOT RUN { # Sample with replacement from ACT math and compare results set.seed(2021) rx <- as.freqtab(ACTmath[, 1:2]) rxs <- sample.freqtab(rx) summary(rx) summary(rxs) # }
Run the code above in your browser using DataLab