Question: Using Rstudio: R problem Create an S3 class studentRecord for objects that are a list with the named elements name, subjects completed, grades, and credit.

Using Rstudio:

R problem

Create an S3 class studentRecord for objects that are a list with the named elements name, subjects completed, grades, and credit. Write a studentRecord method for the generic function mean, which returns a weighted GPA, with subjects weighted by credit. Also write a studentRecord method for print, which employs some nice formatting, perhaps arranging subjects by year code.

Finally create a further class for a cohort of students, and write methods for mean and print which, when applied to a cohort, apply mean or print to each student in the cohort.

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!