Question: I need some help with a data set in R Studio. I am getting a lot of errors in my code and I need direction

I need some help with a data set in R Studio. I am getting a lot of errors in my code and I need direction please.
The data set I am using is a csv file with 200 entries and is titled Mall_Customers.csv with headers titled CustomerID, Gender, Age, Annual Income (k$), Spending Score (1-100).
My goal has been to just follow- the guide for the assignment. Each question is something to write a code and utilize the data but maybe I am choosing the wrong libraries or something because this isn't working for me. My Professor hasn't responded so I am hoping for help here.
The first three things to do:
1. Handle missing data (drop or impute values) & deal with outliers if necessary.
2. Transform and encode categorical variables (e.g., one-hot encoding or label encoding).
3. Scale or normalize continuous variables (if required).
could you please write the import line of code for the csv and suggest libraries I should import? If you could write one line of code for one of three questions above as an example I would appreciate it! Thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!