diff --git a/S3.Rmd b/S3.Rmd index 70e31c4bb..b6fa7d8d5 100644 --- a/S3.Rmd +++ b/S3.Rmd @@ -105,8 +105,7 @@ s3_dispatch(print(f)) ``` \index{S3!methods} -We'll come back to the details of dispatch in Section \@ref(method-dispatch), for now note that S3 methods are functions with a special naming scheme, `generic.class()`. For example, the `factor` method for the `print()` generic is called `print.factor()`. You should never call the method directly, but instead rely on the generic to find it for you. - +We'll get back to dispatch details in Section \@ref(method-dispatch), for now note that S3 methods are functions with a special naming scheme, `generic.class()`. For example, the appropriate method for working with an object of class `factor` and which is dispatched by the generic `print()` is `print.factor()`. You should never call the method directly, but rely on the generic to find it for you. Generally, you can identify a method by the presence of `.` in the function name, but there are a number of important functions in base R that were written before S3, and hence use `.` to join words. If you're unsure, check with `sloop::ftype()`: ```{r}