Question: I have two apples, one banana, one cherry. Does it make sense to calculate the average of these things? Would you code that as a
I have two apples, one banana, one cherry. Does it make sense to calculate the "average" of these things? Would you code that as a factor or a numeric value in R? The two apples, one banana, and one cherry are all quantifiable, but in R programming, they are all character types so because we have three distinct categories and the given variables do not have a fixed set of values, calculating the average of the two apples, one banana, and one cherry makes no logical sense. In other words, colors are not numerical values so calculating the average of these colorful fruits is difficult. Hence, I will code this as a factor. I have four quiz scores: 94, 93, 85, and 0. What is the mean (average) of my quiz scores? Would you code this as a factor or a numeric value in R? The mean average of the quiz score is 68 -> 94 93 85 0=272 -> 272/4 -> 68 Since this quiz scores are quantitative data, I would code this as a numeric value in R. In another class, I received these grades on my quizzes: two As, one B, and one F. What is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
