Question: write it in R Write a function called `gradeSummary` whose input `x` is a number. Your function will return a list with two elements, named

write it in R

Write a function called `gradeSummary` whose input `x` is a number. Your function will return a list with two elements, named `letter.grade` and `passed`. The letter grade will be `"A"` if `x` is at least `90`. The letter grade will be `"B"` if `x` is between `80` and `90`. The letter grade will be `"F"` if `x` is lower than `"80"`. If the student's letter grade is an A or B, `passed` should be TRUE; `passed` should be FALSE otherwise.

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 Databases Questions!