Simple Julia library to fetch R dataset from CRAN
MIT License
RDataGet gets tabular R datasets from CRAN. It is an alternative to RDatasets.jl, working on demand, rather than bundling data.
The basic usage is similar to RDatasets.jl
. You can install it as follows:
Pkg.add(url="https://github.com/frankier/RDataGet.jl.git")
After installing the RDataGet package, you can then load data sets using the
dataset()
function, which takes the name of a package and a data set as
arguments:
using RDataGet
harman_political = dataset("psych", "Harman.political")
neuro = dataset("boot", "neuro")
This package currently just downloads source packages from CRAN and loads its dataset into memory in Julia. It does not depend on R itself.
The package has a few limitation, some of which are caused by this design, while others could be addressed in future:
datasets
package, only