В Sun, 28 Apr 2024 15:15:06 +
Leo Mada пишет:
> This is why I intended to define a new method "proj.line3d" and
> overload this method. But it seems that R interprets "line3d.numeric"
> as a class - which originates probably from the "data,frame" class.
It may help to call the original 'proj
ce).
Thank you very much,
Leonard
From: Ivan Krylov
Sent: Saturday, April 27, 2024 10:08 AM
To: Leo Mada ; r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] Extending proj with proj.line3d methods and
overloading the methods
27 �� 2024 �. 00:49:
27 апреля 2024 г. 00:49:47 GMT+03:00, Leo Mada via R-package-devel
пишет:
>Dear List-Members,
>
>I try to implement a proj.line3d method and to overload this method as follows:
>
>proj.line3d <- function(p, x, y, z, ...)
> UseMethod("proj.line3d")
>
>proj.line3d.numeric = function(p, x, y, z, ..
Dear List-Members,
I try to implement a proj.line3d method and to overload this method as follows:
proj.line3d <- function(p, x, y, z, ...)
UseMethod("proj.line3d")
proj.line3d.numeric = function(p, x, y, z, ...) {
# ...
}
proj.line3d.matrix = function(p, x, y, z, ...) {
# ...
}
The code