[HW3 Data Wrangling]

In this distill blog post I will be reading in the eggs data and perforrming basic data wrangling operations using dplyr functions.

[Eggs Data]

A tibble: 120 x 6 month year large_half_dozen large_dozen extra_large_half_dozen extra_large_dozen 1 January 2004 126 230 132 230 2 February 2004 128. 226. 134. 230 3 March 2004 131 225 137 230 4 April 2004 131 225 137 234. 5 May 2004 131 225 137 236 6 June 2004 134. 231. 137 241 7 July 2004 134. 234. 137 241 8 August 2004 134. 234. 137 241 9 September 2004 130. 234. 136. 241 10 October 2004 128. 234. 136. 241 #… with 110 more rows

[Rows: 120 Columns: 6]

******************************Manipulating the Data with dplyr**************************

SELECT “Retrieving the data we want to use”

A tibble: 120 x 2 year extra_large_dozen 1 2004 230 2 2004 230 3 2004 230 4 2004 234. 5 2004 236 6 2004 241 7 2004 241 8 2004 241 9 2004 241 10 2004 241 # … with 110 more rows

FILTER

ARRANGE

SUMMARISE

Distill is a publication format for scientific and technical writing, native to the web.

Learn more about using Distill at https://rstudio.github.io/distill.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".