Iris dataset

Iris data set

The Iris data set is very famous among statisticians as a demonstration set for statistical methods. It is often used to illustrate classification algorithms.
The data set gives the measurements in centimeters of the variables sepal length and width, and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica.

The iris data set is one of the many example data that ship "out-of-the-box" with distributions of the statistical language R.

Accessing data with the API

Prerequisites

  1. Install Rlabkey package in R
  2. Create _netrc file in Windows or .netrc in Mac, Unix or Linux: Create a netrc file
  3. If on Windows OS: Create an environment variable: HOME pointing to the directory containing the _netrc file

Reset the dataset

library(Rlabkey)
#
#  Reset the database
#
mydata = labkey.selectRows( baseUrl="https://labkey-collab.scicore.unibas.ch",
    folderPath="/Public datasets/Iris dataset",
    schemaName="lists",
    queryName="Iris",
    viewName="",
    colFilter=NULL,
    containerFilter=NULL
)
labkey.deleteRows(  baseUrl="https://labkey-collab.scicore.unibas.ch",
                  folderPath="/Public datasets/Iris dataset",
                  schemaName="lists",
                  queryName="Iris",
                  toDelete=mydata[,"Key",drop=FALSE]
)
labkey.insertRows(  baseUrl="https://labkey-collab.scicore.unibas.ch",
                  folderPath="/Public datasets/Iris dataset",
                  schemaName="lists",
                  queryName="Iris",
                  toInsert=iris
)

4.33.01.10.13
4.42.91.40.23
4.43.01.30.23
4.43.21.30.23
4.52.31.30.33
4.63.11.50.23
4.63.21.40.23
4.63.41.40.33
4.63.61.00.23
4.73.21.30.23
4.73.21.60.23
4.83.01.40.13
4.83.01.40.33
4.83.11.60.23
4.83.41.60.23
4.83.41.90.23
4.92.43.31.01
4.92.54.51.72
4.93.01.40.23
4.93.11.50.13
4.93.11.50.23
4.93.61.40.13
5.02.03.51.01
5.02.33.31.01
5.03.01.60.23
5.03.21.20.23
5.03.31.40.23
5.03.41.50.23
5.03.41.60.43
5.03.51.30.33
5.03.51.60.63
5.03.61.40.23
5.12.53.01.11
5.13.31.70.53
5.13.41.50.23
5.13.51.40.23
5.13.51.40.33
5.13.71.50.43
5.13.81.50.33
5.13.81.60.23
5.13.81.90.43
5.22.73.91.41
5.23.41.40.23
5.23.51.50.23
5.24.11.50.13
5.33.71.50.23
5.43.04.51.51
5.43.41.50.43
5.43.41.70.23
5.43.71.50.23
5.43.91.30.43
5.43.91.70.43
5.52.34.01.31
5.52.43.71.01
5.52.43.81.11
5.52.54.01.31
5.52.64.41.21
5.53.51.30.23
5.54.21.40.23
5.62.53.91.11
5.62.74.21.31
5.62.84.92.02
5.62.93.61.31
5.63.04.11.31
5.63.04.51.51
5.72.55.02.02
5.72.63.51.01
5.72.84.11.31
5.72.84.51.31
5.72.94.21.31
5.73.04.21.21
5.73.81.70.33
5.74.41.50.43
5.82.64.01.21
5.82.73.91.21
5.82.74.11.01
5.82.75.11.92
5.82.75.11.92
5.82.85.12.42
5.84.01.20.23
5.93.04.21.51
5.93.05.11.82
5.93.24.81.81
6.02.24.01.01
6.02.25.01.52
6.02.75.11.61
6.02.94.51.51
6.03.04.81.82
6.03.44.51.61
6.12.65.61.42
6.12.84.01.31
6.12.84.71.21
6.12.94.71.41
6.13.04.61.41
6.13.04.91.82
6.22.24.51.51
6.22.84.81.82
6.22.94.31.31
6.23.45.42.32
6.32.34.41.31
Showing: all messages
No messages