city | R Documentation |
This data set consists of independent measurements of chlorine in ppm (parts per million) from three large cities.
city
A data frame with 20 observations (rows) on 3 variables (columns).
Column name | Data type | Description | Values | |
[,1] | City1 | numeric | Chlorine in ppm for City1 | (0.11 - 5.13) |
[,2] | City2 | numeric | Chlorine in ppm for City2 | (0.41 - 13.89) |
[,3] | City3 | numeric | Chlorine in ppm for City3 | (0.24 - 17.20) |
This data is the unstacked version of the data set Pollution
. Earlier the cities
were approximately equal polluted, but one of the cities has tried to reduce
the air pollution.
Pollution
# Combining the columns into one single column
# with factor as data type
citydata <- stack(city)
# Renaming the columns of the transformed data frame
colnames(citydata) <- c("y", "city")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.