Reading in distill package
library(distill)
Reading in poultry data
poultry_data <- read.csv("poultry_tidy.csv", header=TRUE, stringsAsFactors=FALSE)
Previewing data
head(poultry_data)
## Product Year Month Price_Dollar
## 1 Whole 2013 January 2.385
## 2 Whole 2013 February 2.385
## 3 Whole 2013 March 2.385
## 4 Whole 2013 April 2.385
## 5 Whole 2013 May 2.385
## 6 Whole 2013 June 2.385
Identifying types of variables
str(poultry_data)
## 'data.frame': 600 obs. of 4 variables:
## $ Product : chr "Whole" "Whole" "Whole" "Whole" ...
## $ Year : int 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 ...
## $ Month : chr "January" "February" "March" "April" ...
## $ Price_Dollar: num 2.38 2.38 2.38 2.38 2.38 ...
There are four variables in this dataset, Product, Year, Month and Price_Dollar. Product is a character vector that names the type of poultry being sold. Year is an integer vector that presents the year the product was sold. Month is a character vector that coisides with the year it was sold. Price_Dollar is a numeric vector for the price at which each product was sold. This data could be useful to examin the change in poutlry cost over time.