Displaying 4 results from an estimated 4 matches for "adrop".
Did you mean:
drop
2004 Mar 20
0
new version of abind()
...ly (it can now accept a list as the first argument, removing the need
to use do.call() in most situtations), and changed slightly (to no longer
by default creates dimension names if none exist, because these are usually
useless and mostly annoying). There is also a new function in the package:
adrop(), which does approximately what drop() does, but allows control over
which dimensions are dropped.
Note also that the abind() function runs under S-plus as well (I believe
adrop() does as well, but it is not as well tested).
Details:
2004-03-12
* R/abind.R man/abind.Rd
allo...
2004 Mar 20
0
new version of abind()
...ly (it can now accept a list as the first argument, removing the need
to use do.call() in most situtations), and changed slightly (to no longer
by default creates dimension names if none exist, because these are usually
useless and mostly annoying). There is also a new function in the package:
adrop(), which does approximately what drop() does, but allows control over
which dimensions are dropped.
Note also that the abind() function runs under S-plus as well (I believe
adrop() does as well, but it is not as well tested).
Details:
2004-03-12
* R/abind.R man/abind.Rd
allo...
2018 Nov 21
3
Subsetting row in single column matrix drops names in resulting vector
Hi Rui. Thanks for answer, I'm aware of drop = FALSE option. Unfortunately
it doesn't resolve the issue - I'm expecting to get a vector, not a matrix .
??, 21 ????. 2018 ?. ? 20:54, Rui Barradas <ruipbarradas at sapo.pt>:
> Hello,
>
> Use drop = FALSE.
>
> a[1, , drop = FALSE]
> # col1
> #row1 1
>
>
> Hope this helps,
>
> Rui Barradas
2018 Nov 22
0
Subsetting row in single column matrix drops names in resulting vector
...solution would be to be able to specify something like a[1,,drop='row'], or a[1,,drop=1] to drop the rows but keep columns, and get a vector being equal to 'row1' (which in this case just has length-1, and names 'col1')
That not how it's designed, but you could use 'adrop()' from the 'abind' package:
abind:: adrop(a[1,,drop=FALSE], drop=1) first subsets, then drops the row-dimension, so gives what you're looking for.
Hope this solves your problem.
Best regards,
Emil Bode
?On 21/11/2018, 17:58, "R-devel on behalf of Dmitriy Selivanov" &...