Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical inconsistency between class and method #1726

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prdm0
Copy link

@prdm0 prdm0 commented Apr 27, 2022

For a first-time reader of R S3 system concepts, it goes without saying that factor is a method. It's actually the class. In the context of factors, for which the text is intended to explain sending the print.factor method, there are only two methods in question:

1 - print which is the generic function to which we must entrust the sending of the appropriate method based, normally, on the class of the first argument;
2 - print.factor which will be the appropriate method dispatched by the generic print function.

Best regards.

For a first-time reader of R's S3 system concepts, it goes without saying that `factor` is a method. It's actually the class. In the context of factors, for which the text is intended to explain sending the `print.factor` method, there are only two methods in question:

1 - `print` which is the generic function to which we must entrust the sending of the appropriate method based, normally, on the class of the first argument;
2 - `print.factor` which will be the appropriate method dispatched by the generic `print` function.

Best regards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant