MulaiMulai sekarang secara gratis

Simulating wait times

To give Amir a better idea of how long he'll have to wait, you'll simulate Amir waiting 1000 times and create a histogram to show him what he should expect. Recall from the last exercise that his minimum wait time is 0 minutes and his maximum wait time is 30 minutes.

A data frame called wait_times is available and the dplyr and ggplot2 libraries are loaded.

Latihan ini adalah bagian dari kursus

Introduction to Statistics in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Set random seed to 334
___
Edit dan Jalankan Kode