Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pigs

United Kingdom Pig Production


Description

This data contains about the United Kingdom Pig Production from the book 'Data' by Andrews and Herzberg. The original data can be on Statlib: http://lib.stat.cmu.edu/datasets/Andrews/T62.1

Usage

data(pigs)

Format

A data frame with 48 rows and 8 variables

Details

The time variable has been added from a combination of year and quarter

  • time year + (quarter - 1) / 4

  • year year of production

  • quarter quarter of the year of production

  • gilts number of sows giving birth for the first time

  • profit ratio of price to an index of feed price

  • s_per_herdsz ratio of the number of breeding pigs slaughtered to the total breeding herd size

  • production number of pigs slaughtered that were reared for meat

  • herdsz breeding herd size

References

Andrews, David F., and Agnes M. Herzberg. Data: a collection of problems from many fields for the student and research worker. Springer Science & Business Media, 2012.


GGally

Extension to 'ggplot2'

v2.1.1
GPL (>= 2.0)
Authors
Barret Schloerke [aut, cre], Di Cook [aut, ths], Joseph Larmarange [aut], Francois Briatte [aut], Moritz Marbach [aut], Edwin Thoen [aut], Amos Elberg [aut], Ott Toomet [ctb], Jason Crowley [aut], Heike Hofmann [ths], Hadley Wickham [ths]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.