Using the RDatasets package

Finding good-quality data for learning, teaching, and statistical software development can be challenging. That's why the industry practically standardized the use of over 10,00 high-quality datasets. These were originally distributed with the statistical software environment R. Hence, they've been aptly named the RDatasets.

The Iris flower dataset is part of this collection. There are many ways to download it, but the most convenient is through the RDatasets package. This package provides an easy way for Julia users to experiment with most of the standard datasets available in R or included with R's most popular packages. Sounds great; let's add it.

First, switch to package management mode:

    julia> ]
    pkg> ...

Get Julia 1.0 Programming Complete Reference Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.