Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Read data file Data_with_column_names.csv using read.csv() or read.table() function. Increment each value in column Floor by 1 using For loop. Increment each value of column
Read data file Data_with_column_names.csv using read.csv() or read.table() function.
- Increment each value in column Floor by 1 using For loop.
- Increment each value of column Area by 1 which are greater than 800, otherwise reduce their value by 1.
- Write the changed data frame back to csv file.
Upload the R script as solution.
Rooms Age 10 Price 60 71 91 Cent. heat Yes Yes 5 Yes 68 Floor 1245 1267 1116 1175 1154 1218 1276 1254 1236 1207 Area 979 858 8992 922 986 6 950 772 944 858 9658 5 Yes 6 onnon Fono 10 56 Yes Yes Yes Yes Yes 77 57Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started