Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
R Object-oriented Programming

You're reading from   R Object-oriented Programming A practical guide to help you learn and understand the programming techniques necessary to exploit the full power of R

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher
ISBN-13 9781783986682
Length 190 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Kelly Black Kelly Black
Author Profile Icon Kelly Black
Kelly Black
Arrow right icon
View More author details
Toc

Chapter 10. Case Study – Course Grades

This chapter is our first case study. We bring together the ideas from the previous chapters and provide an extended example. Some new ideas are introduced, and they should make more sense in the context of a full example.

This chapter is roughly divided into four parts:

  • The Course class: This section gives you an overview of the S4 class that will contain a list of grades for a course. The grades are kept in a list with each graded task as a separate object.
  • The assignment classes: This section gives you an overview of the S4 classes used to keep the grades for a specific graded task. This class has two derived classes. One derived class is to keep track of grades that have a numeric score, and the other is to keep track of grades that consist of letters.
  • Extending existing functions: This section includes a brief discussion of how existing functions can be extended to react in an appropriate way to an object that is one of the assignment...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image