[prev in list] [next in list] [prev in thread] [next in thread]
List: r-devel
Subject: Re: [Rd] svd() results should have a class
From: Robert Harlow <rharlow86 () gmail ! com>
Date: 2022-06-23 23:53:39
Message-ID: CAHdfS95A=m78=5-KyfL8FhsEyq3iVMMb1ZP9raEF+OggpQ8+hg () mail ! gmail ! com
[Download RAW message or body]
Don't have a view on whether it makes sense in base R or not, but WRE
section 7.1 may be helpful to you:
https://cran.r-project.org/doc/manuals/R-exts.html#Adding-new-generics.
It's not uncommon for packages to want to make base methods generic and the
above link provides advice on how to do so.
Bob
On Thu, Jun 23, 2022 at 12:07 PM Lenth, Russell V <russell-lenth@uiowa.edu>
wrote:
> Dear R-Devel,
>
> I noticed that if we run base::svd(x), we obtain an object of class
> "list". Shouldn't there be an "svd" class, in case someone (e.g., me) wants
> to write methods for singular value decompositions? Note that other
> matrix-decomposition routines like qr() and eigen() each return objects
> having those names.
>
> Thanks
>
> Russ Lenth
> Russell-lenth@uiowa.edu
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
[[alternative HTML version deleted]]
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic