Search code examples
rpackageload

africa dataset from Amelia package


Amelia has a dataset named 'africa' and I'm trying to load it. airquality dataset works fine, but I want to know (1) how I can load datasets from the packages, and (2) to see what datasets are in that package, in order to choose the most accurrate dataset for a specific problem that I'm trying to solve.


Solution

  • lets answer your questions the other way around. the data command is what you need.

    2) To see the datasets in a package use:

    data(package = "Amelia")
    

    1) to load a dataset from a package without loading the package use:

    data("africa", package = "Amelia")