yields: yields: Crop Yield from Fields with Different Soil Types

yieldsR Documentation

yields: Crop Yield from Fields with Different Soil Types

Description

The yields data is from a crop experiment where the crops were grown in three different soil types, and the yield was taken from 10 randomly chosen fields per soil type. This is the stacked version of the data, with the response variable yield in one column.

Usage

yields

Format

A data frame with 30 observations (rows) and 2 variables (columns).

Column name Data type Description Values
[,1] yield integer Continuous response variable (3 - 18)
[,2] soil factor 3 different types of soil (clay, loam, sand)

See Also

yields.unstacked

Examples


# Yields per soil type
boxplot(yield ~ soil, data=yields, col="green")

# Unstack the data
unstacked_yields <- unstack(yields)


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.