This is Henry’s homework number 2.
This is an R Markdown document to complete the tasks assigned in homework #2. It will read in a dataset. The variables will be explained. Simple data-wrangling operations will be demonstrated.
This data shows the price in dollars by poultry product type, month, and year. Each column is a variable and each row is an observation.
This data set has four variables:
library(tidyverse)
poultry <- read_csv("poultry_tidy - poultry_tidy.csv")
poultry%>%
select(Product, Year, Price_Dollar)%>%
arrange(desc(Price_Dollar))
# A tibble: 600 × 3
Product Year Price_Dollar
<chr> <dbl> <dbl>
1 B/S Breast 2013 7.04
2 B/S Breast 2013 7.04
3 B/S Breast 2013 7.04
4 B/S Breast 2013 7.04
5 B/S Breast 2013 7.04
6 B/S Breast 2013 7.04
7 B/S Breast 2013 7.04
8 B/S Breast 2013 7.04
9 B/S Breast 2013 7.04
10 B/S Breast 2013 7.04
# … with 590 more rows
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 ...".
For attribution, please cite this work as
Nguyen (2022, Feb. 13). Data Analytics and Computational Social Science: Henry Nguyen HW2. Retrieved from https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomhenryfnp865058/
BibTeX citation
@misc{nguyen2022henry, author = {Nguyen, Henry}, title = {Data Analytics and Computational Social Science: Henry Nguyen HW2}, url = {https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomhenryfnp865058/}, year = {2022} }