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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.