I've been writing functions for block matrices and more generally,
arrays of matrices.
Presumably, the default transpose operation would transpose everything.
But there are situations where one might want to transpose the
top-level matrix (of submatrices) but not the submatrices, themselves.
Or vi
Out of my naive curiosity, what arguments are you hoping a method for t()
will take?
I mean honestly an argument could be made that all S3 generics should take
I don't think its an overwhelmingly compelling one, but I d see some
merit to it given what an s3 generic is at its core.
~G
On Thu
That's a great suggestion Davis.
While, we're on the topic...
Could we have a "dots" argument in base::t, the transpose function?
On Fri, Jan 29, 2021 at 4:48 AM Davis Vaughan wrote:
>
> I should also say that I would be willing to attempt a patch for this, if
> others agree that this would be
I should also say that I would be willing to attempt a patch for this, if
others agree that this would be useful.
- Davis
On Thu, Jan 28, 2021 at 9:14 AM Davis Vaughan wrote:
> Hi all,
>
> I would like to propose adding `...` to the signatures of the following
> rounding functions:
>
> - floor(
Wow - can't believe it was that simple (and obvious now that I see the answer).
Thanks Simon!
-Ezra
--
e...@landtucker.com
m: 818-203-0269
LinkedIn: linkedin.com/in/ezztucker
Github: github.com/minimenchmuncher
‐‐‐ Original Message ‐‐‐
On Thursday, January 28th, 2021 at 8:41 AM, Simon
Hi all,
I would like to propose adding `...` to the signatures of the following
rounding functions:
- floor(x)
- ceiling(x)
- round(x, digits = 0)
- And possibly signif(x, digits = 6)
The purpose would be to allow S3 methods to add additional arguments as
required.
A few arguments in favor of t
Ezra,
I think it's just the fact the you specified the wrong class inheritance in
setOldClass() - it has to match you S3 definition, so it should be:
setOldClass(c("b","a"))
In which case it works:
> n(s1 = b_1)
An object of class "n"
Slot "s1":
[1] "world"
attr(,"class")
[1] "b" "a"
Cheers,