Purrrification of data: Some examples
A First Example To generate a collection of 100 normally distributed random number, we use: rnorm(100) We can repeat this process indefinitely for \(n\) times, and when \(n = 9\), we have the following collections: collection_1 which we can conveniently regroup into a larger collection of random numbers: larger_collection Alternatively, we can use the rerun shorthand to define that the aforementioned collection: list_of_numbers Each of the vector $$\mathbf{x}^{(d)} = \begin{pmatrix}x_1^{(d)} & x_2^{(d)} & \ldots & x_{100}^{(d)}\end{pmatrix}, \quad d = 1, 2, \ldots, 9$$ is a collection of 100 normally distributed random numbers: $$ \ell = \{\mathbf{x}^{(1)}, \mathbf{x}^{(2)}, \ldots, \mathbf{x}^{(9)}\} = \left\{ \begin{pmatrix}x_1^{(1)}\\x_2^{(1)}\\\vdots\\x_{100}^{(1)}\end{pmatrix}, \begin{pmatrix}x_1^{(2)}\\x_2^{(2)}\\\vdots\\x_{100}^{(2)}\end{pmatrix}, \ldots, \begin{pmatrix}x_1^{(9)}\\x_2^{(9)}\\\vdots\\x_{100}^{(9)}\end{pmatrix}\...