iris2: Adapted Iris Dataset

iris2R Documentation

Adapted Iris Dataset

Description

This dataset is an adaptation of the famous Iris dataset. The original dataset contains measurements of iris flowers from three different species. In this adaptation, the dataset has been modified to create an ordinal response variable based on petal length, categorizing it into three groups: Low, Medium, and High, so that it shows separation. The dataset consists of five predictor variables and one ordinal response variable.

Usage

data(iris2)

Format

A data frame with 150 rows and 6 coumns/variables:

y

An ordered factor representing the petal length category:

  • Low: Petal length less than 2.5

  • Medium: Petal length between 2.5 and 5.0

  • High: Petal length greater than 5.0

Sepal.Length

Numeric. The length of the sepal in centimeters.

Sepal.Width

Numeric. The width of the sepal in centimeters.

Petal.Length

Numeric. The length of the petal in centimeters.

Petal.Width

Numeric. The width of the petal in centimeters.

Species

Categorical. The species of Iris.

Source

The original Iris dataset is available as data(iris) in R

Examples

# View the structure of the dataset
str(iris2)

divoRce documentation built on April 28, 2026, 3:01 a.m.

Related to iris2 in divoRce...