Skip to content

Document notation in s3_dispatch() #20

Description

@cwickham

For example,

library(sloop)
x <- 1:5
y <- factor(letters[1:5])

sloop::s3_dispatch(summary(x))
#>    summary.integer
#>    summary.numeric
#> => summary.default
sloop::s3_dispatch(summary(y))
#> => summary.factor
#>  * summary.default

What does => indicate? *, ->? In the console, some functions appear greyed out, what does that mean?

This seems to be done partially in the README but it needs to make it into the docs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions