mysample: my sample function

View source: R/functions.R

mysampleR Documentation

my sample function

Description

takes n samples each iteration with replacement and shows the resultant distribution

Usage

mysample(n, N = 10, iter = 10, time = 0.1, last = FALSE, rep = TRUE)

Arguments

n

number of samples each iteration

N

size of each sample

iter

number of iterations

time

time between showing each plot

last

indicates that only last bar plot should be displayed

rep

with or without replacement

Value

a barplot of the distribution and a corresponding table

Examples

mysample(5)


nbcastle/MATH4753cast0059 documentation built on May 3, 2022, 8:21 p.m.