Learn R Programming

cluster (version 2.0.7-1)

agriculture: European Union Agricultural Workforces

Description

Gross National Product (GNP) per capita and percentage of the population working in agriculture for each country belonging to the European Union in 1993.

Usage

data(agriculture)

Arguments

Format

A data frame with 12 observations on 2 variables:

[ , 1] x numeric per capita GNP

The row names of the data frame indicate the countries.

Details

The data seem to show two clusters, the “more agricultural” one consisting of Greece, Portugal, Spain, and Ireland.

References

see those in agnes.

See Also

agnes, daisy, diana.

Examples

Run this code
# NOT RUN {
data(agriculture)

## Compute the dissimilarities using Euclidean metric and without
## standardization
daisy(agriculture, metric = "euclidean", stand = FALSE)

## 2nd plot is similar to Figure 3 in Struyf et al (1996)
plot(pam(agriculture, 2))

## Plot similar to Figure 7 in Struyf et al (1996)
# }
# NOT RUN {
plot(agnes(agriculture), ask = TRUE)
# }
# NOT RUN {
## Plot similar to Figure 8 in Struyf et al (1996)
# }
# NOT RUN {
plot(diana(agriculture), ask = TRUE)
# }

Run the code above in your browser using DataLab