Displaying 4 results from an estimated 4 matches for "addrownums".
2006 Jul 17
1
Patch to allow negative argument in head() and tail()
...awkward to reproduce in my versions and did not seem interesting anyway.
Instead, I added an error message if length(n) > 1.
- I used the word "scalar" in the aforementioned error message to mean a
vector of length 1. Perhaps is this not the correct R terminology?
- I added a 'addrownums = TRUE' argument to head() used when n < 0, similar to
tail() with n > 0. This required to write separate methods for
classes 'data.frame' and 'matrix'.
- The 'function' methods are not modified.
- In the man page, the 'function' method was not document...
2020 Apr 24
0
R 4.0.0 is released
...* For head(x, n) and tail() the default and other S3 methods
notably for _vector_ n, e.g. to get a "corner" of a matrix, has
been extended to array's of higher dimension thanks to the patch
proposal by Gabe Becker in PR#17652. Consequently, optional
argument addrownums is deprecated and replaced by the (more
general) argument keepnums. An invalid second argument n now
leads to typically more easily readable error messages.
* New function .class2() provides the full character vector of
class names used for S3 method dispatch.
* Printin...
2020 Apr 24
0
R 4.0.0 is released
...* For head(x, n) and tail() the default and other S3 methods
notably for _vector_ n, e.g. to get a "corner" of a matrix, has
been extended to array's of higher dimension thanks to the patch
proposal by Gabe Becker in PR#17652. Consequently, optional
argument addrownums is deprecated and replaced by the (more
general) argument keepnums. An invalid second argument n now
leads to typically more easily readable error messages.
* New function .class2() provides the full character vector of
class names used for S3 method dispatch.
* Printin...
2020 Apr 24
0
R 4.0.0 is released
...* For head(x, n) and tail() the default and other S3 methods
notably for _vector_ n, e.g. to get a "corner" of a matrix, has
been extended to array's of higher dimension thanks to the patch
proposal by Gabe Becker in PR#17652. Consequently, optional
argument addrownums is deprecated and replaced by the (more
general) argument keepnums. An invalid second argument n now
leads to typically more easily readable error messages.
* New function .class2() provides the full character vector of
class names used for S3 method dispatch.
* Printin...