Make some messy numbers

messy_numbers <- runif(10, 1, 10)
messy_numbers
##  [1] 2.895561 7.064262 7.739179 2.929076 4.137010 6.742025 7.106667 7.344908
##  [9] 5.332667 8.678407

We made some random numbers. We asked for ten. They are very messy, they need to be rounded. That’s why we called them messy_numbers.

Round the numbers

clean_numbers <- round(messy_numbers, 0)
clean_numbers
##  [1] 3 7 8 3 4 7 7 7 5 9

In this step, I used the round() function to tidy the numbers up. I rounded all ten numbers to the nearest whole number in one step.

Plot the numbers

plot(clean_numbers, col = "purple")

Finally, we made a graph. I asked for purple points.

The end,

Jessica L.