Perform the following steps to retrieve data for machine learning:
- Access the UCI machine learning repository: http://archive.ics.uci.edu/ml/.
- Click on view all data sets. Here you will find a list of datasets containing field names, such as Name, Data Types, Default Task, Attribute Types, #Instances, #Attributes, and Year:
- Use Ctrl + F to search for Iris:
- Click on Iris. This will display the data folder and the dataset description:
- Click on Data Folder, which will display a directory containing the iris dataset:
- You can then either download iris.data or use the read.csv function to read the dataset:
> iris.data = read.csv(url("http://archive.ics.uci.edu/ml/machine- learning-databases/iris/iris.data"), header = FALSE, ...