Creates or updates a data frame of sample means from a randomSample object passed to it

updateSampleMeans(sampleData, sampleMeans = NULL)

Arguments

sampleData

data frame of random samples from a normal distribution

sampleMeans

data frame of sample means (empty data frame is initialized if this is argument is blank)

Value

A data frame of sample means from each sample in randomSample

Examples

dat <- randomSample(numSamples=100) head(updateSampleMeans(sampleData=dat))
#> means #> X1 0.41279365 #> X2 -0.03023126 #> X3 -0.25377697 #> X4 -0.11127598 #> X5 0.00848299 #> X6 0.07367218