Data Science Desktop Survival Guide
by Graham Williams |
|||||
Random Observations |
20180721 It is also useful to review some random observations from the dataset to provide a little more insight. Here we use dplyr::sample_n() to randomly select six rows from the dataset.
# Review a random sample of observations.
sample_n(ds, size=6) %>% print.data.frame()
|