Assignment 2 - Airline Pricing Analysis

Sameer Mathur

Questions based on Part 1

Q1a. Write R code to show the total number of rows and columns present in the data frame airline.df.

Q1b. Write R code to list the names of the column present in the data frame store.df.

Q1c. Write R code to output the data types of the different columns.

Q1d. Write R code to convert the data types of the columns {IsDiwali, DayBeforeDiwali, DayAfterDiwali, MetroDeparture, MetroArrival} into factor variables.

Q1e. Write R code to verify the conversions done in Q1d.