November 2016
Beginner to intermediate
959 pages
43h 46m
English
Sampling is a method to select a subset of data from a statistical population, which can use the characteristics of the population to estimate the whole population. The following recipe will demonstrate how to generate samples in R.
Make sure that you have an R working environment for the following recipe.
Perform the following steps to understand data sampling in R:
sample function:
> sample(1:10)
size argument:
> sample(1:10, size = 5)
replace = TRUE ...Read now
Unlock full access