Re: [R] Issue from R-devel: subset on table

2023-10-21 Thread Leonard Mada via R-help
Another solution could also be possible - see below. On 10/21/2023 10:38 PM, Leonard Mada wrote: My mistake! It does actually something else, which is incorrect. One could still use (although the code is more difficult to read): subset(tmp <- table(sample(1:10, 100, T)), tmp > 10) 2) Alte

Re: [R] Issue from R-devel: subset on table

2023-10-21 Thread Leonard Mada via R-help
My mistake! It does actually something else, which is incorrect. One could still use (although the code is more difficult to read): subset(tmp <- table(sample(1:10, 100, T)), tmp > 10) Sincerely, Leonard On 10/21/2023 10:26 PM, Leonard Mada wrote: Dear List Members, There was recently

[R] Issue from R-devel: subset on table

2023-10-21 Thread Leonard Mada via R-help
Dear List Members, There was recently an issue on R-devel (which I noticed only very late): https://stat.ethz.ch/pipermail/r-devel/2023-October/082943.html It is possible to use subset as well, almost as initially stated: subset(table(sample(1:5, 100, T)), table > 10) # Error in table > 10 : #