Skip to content

Commit

Permalink
Merge branch 'vignette-typo-fix' of https://github.com/mattheaphy/S7
Browse files Browse the repository at this point in the history
…into vignette-typo-fix
  • Loading branch information
mattheaphy committed Nov 13, 2024
2 parents 870524b + c68a17a commit d3ecc77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/generics-methods.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ The only downside to performing error checking is that you constraint the interf

## `super()`

Sometimes it's useful to define a method for a class that relies on its superclass.
Sometimes it's useful to define a method for a class that relies on the implementation for its superclass.
A good example of this is computing the mean of a date --- since dates represent the number of days since 1970-01-01, computing the mean is just a matter of computing the mean of the underlying numeric vector and converting it back to a date.

To demonstrate this idea, I'll first define a mean generic with a method for numbers:
Expand Down

0 comments on commit d3ecc77

Please sign in to comment.