You need to add "-": ` (dat3 <- dat1[-unique(c(BadName, BadAge,
BadWeight)), ])` which makes the command NOT).
David
On Sun, Jan 30, 2022 at 11:00 AM Val wrote:
> Thank you David. What about if I want to list the excluded rows? I used
> this (dat3 <- dat1[unique(c(BadName, BadAge, BadWeight
Why should 6,5 be more correct than 5,6? How is R supposed to reach that
conclusion based on comparing values?
On January 30, 2022 1:16:44 AM PST, Stefan Fleck
wrote:
>I am experiencing a weird behavior of `order()` for numeric vectors. I
>tested on 3.6.2 and 4.1.2 for windows and R 4.0.2 on u
Hello,
I am not seeing an error, the order is right:
x <- c(
0.6,
0.5,
0.3,
0.2,
0.1,
0.1
)
(i <- order(x))
#> [1] 5 6 4 3 2 1
x[i]
#> [1] 0.1 0.1 0.2 0.3 0.5 0.6
Hope this helps,
Rui Barradas
Às 09:16 de 30/01/2022, Stefan Fleck escreveu:
I am experiencing a weird behavior of `
Thank you David.
What about if I want to list the excluded rows?
I used this
(dat3 <- dat1[unique(c(BadName, BadAge, BadWeight)), ])
It did not work.The desired output is,
Alex, 20, 13X
John, 3BC, 175
Jack3, 34, 140
Thank you,
On Sat, Jan 29, 2022 at 10:15 PM David Carlson wrote:
I am not an expert, but I believe your extrapolation idea is unsound.
Again, post on the HPC list to get expert feedback instead of trying
to reinvent your own wheel. I will not respond further.
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things
5 matches
Mail list logo