Virtual Sampling
Learn about virtual sampling and develop an understanding through practical demonstrations.
We'll cover the following
We performed this sampling activity by hand first so that we can develop a firm understanding of the root ideas behind sampling. Now, we’ll mimic this tactile sampling activity with a virtual sampling activity. In other words, we’ll use a virtual analog to the bowl of balls and a virtual analog to the shovel.
Using the virtual shovel once
Let’s start by performing the virtual analog of the tactile sampling exercise we performed. We first need a virtual analog of the bowl. To this end, we included a data frame named bowl
in the moderndive
package. The rows of bowl
correspond exactly with the contents of the actual bowl.
Get hands-on with 1400+ tech skills courses.