Data Cleaning With R 2/12

Screen Link:

https://app.dataquest.io/m/323/data-cleaning-with-r/2/sat-data-changing-data-types-and-creating-new-variables
My Code:
sat_results ← sat_results > mutate(
‘SAT Critical Reading Avg. Score’ = as.numeric(‘SAT Critical Reading Avg. Score’),
‘SAT Math Avg. Score’ = as.numeric(‘SAT Math Avg. Score’),
‘SAT Writing Avg. Score’ = as.numeric(‘SAT Writing Avg. Score’)
)

sat_results_clean ← sat_results > mutate(
avg_sat_score = (‘SAT Critical Reading Avg. Score’ + ‘SAT Math Avg. Score’

  • ‘SAT Writing Avg. Score’)
    )

What I expected to happen:
I expected that the data types of the following columns will change from character to numeric. Also there will be a new column named avg_sat_score saved in the sat_results_clean data frame.

What actually happened:

It is showing a warning message. Also, there was no new column.


<!--Enter other details below: -->