Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 193

Note – Avoid direct calls

Оглавление

As you can see from the above, methods are normal R functions with a specific name. So, you might be tempted to call them directly (e.g. call directly print.data.frame() when working with a data-frame) Actually, that is not such a good idea. This means that if, for example later you improve the dispatch method that this call will never see those improvements.

The Big R-Book

Подняться наверх