1. (4 marks) Import the FuelEfficiencyAssignment dataset. This is similar to the dataset used in class, but with a few modifications. What is the class of the variable Cylinders? Convert this variable to a factor and print out the levels of the factor. How many levels does the factor have?
2. (8 marks) Store your date of birth in the following format, “Year, Month Day”, as a date in R using the as.Date() function. Using your date object answer the following questions: On which day of the week were you born? How many weeks have you been alive? How many days are there until your birthday?
3. (5 marks) Use the as.POSIXct() function to store your date and time of birth (if you do not know what time you were born at use 12:00:00 AM) . Determine how many seconds you have been alive.
4. (7 marks) In the FuelEfficiencyAssignment dataset, we would like to use the Type variable as a factor, however, because of data entry errors, there are too many distinct values. For instance, sometimes SUV is written as suv, and R recognizes these as two levels, although clearly they should both indicate the factor SUV. Ideally, our variable should have four levels: Sedan, Minivan, Wagon, SUV. In the dataset, R identifies 12 different levels. Use string normalization to appropriately modify the Type variable so it can be used as a factor with four levels.
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.#
fuel <- read.csv("FuelEfficiencyAssignment.csv")
#  "Model" "Eng.Size" "Cylinders" "MSRP" "City_L.100km"
#  "Highway_L.100km" "Weight_in_Pounds" "Type" "Country"...