farms | R Documentation |
The size of plants has been measured on 24 farms in five different locations. There is various Nitrogen content in the soil within each of the 24 farms. This data set illustrates spatial pseudo-replication, since the five measurements made on each farm are probably dependent, coming from the same farm.
farms
A data frame with 120 observations (rows) and 3 variables (columns).
Column name | Data type | Description | Values | |
[,1] | Nitrogen | numeric | The nitrogen content in the soil | (11.46 - 29.18) |
[,2] | Plant_size | numeric | The size of the plant | (76.56 - 117.50) |
[,3] | Farm | factor | 24 different farms | (farm1...farm24) |
This is the same data set as in The R Book, but with different column names.
The R book
, M.J. Crawley, Wiley, 2013.
farms0
# A short summary of the variables
summary(farms)
# Data for the smallest plant
farms[which(farms$Plant_size == min(farms$Plant_size)),]
# Data for the largest plant
farms[which.max(farms$Plant_size),]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.