Question: 1. Explain what this code does: ```{r} set.seed(10) x=sample(1:10,100,replace=T) x ``` Output: [1] 9 10 7 8 6 7 3 8 10 7 10 2

1. Explain what this code does:

```{r} set.seed(10) x=sample(1:10,100,replace=T) x ```

Output:

[1] 9 10 7 8 6 7 3 8 10 7 10 2 8 8 7 6 7 6 2 5 [21] 9 2 10 5 10 1 7 10 2 9 4 2 8 3 6 2 1 10 10 1 [41] 9 9 8 5 10 9 1 7 8 2 4 3 1 3 10 10 10 7 10 5 [61] 3 5 5 7 3 6 9 2 3 6 10 10 9 5 10 10 2 9 4 4 [81] 3 7 1 4 6 9 3 9 9 1 6 10 7 9 8 9 4 3 3 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!