Question: a ) Use mean ( scores ) to compute the average of the data. Store the expression in the variable avg _ score. b )

a) Use mean(scores) to compute the average of the data. Store the expression in the variable
avg_score.
b) Using comparison operators, write the R expression for scores less than or equal to the
mean of the data. Store the expression in the variable below_avg.
c) Using comparison operators, write the R expression for scores greater than the mean of the
data. Store the expression in the variable above_avg.
d) Using the sum function, write the R expression for the number of scores less than or equal
to the average of the data. Store the expression in the variable count_below_avg.
e) Using the sum function, write the R expression for the number of scores greater than the
average of the data. Store the expression in the variable count_above_avg

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!