Re: [R] A question of data frame filter based on another one

2022-02-18 Thread Rui Barradas
Hello, Sorry, typo. It's rowSums(y), not x. x[rowSums(y) > 0L, ] Rui Barradas Às 20:30 de 18/02/2022, Rui Barradas escreveu: Hello, Use ?rowSums and compare its result to 0. You want the sums greater than zero. x <- "   id  g 1  1 21 2  3 52 3  2 43 4  4 94 5  5 35" y <- " id g 1  1 1 2

Re: [R] [EXTERNAL] Re: A question of data frame filter based on another one

2022-02-18 Thread Li, Aiguo (NIH/NCI) [E] via R-help
Hi Eric, Thanks for your quick response. It works. Have a nice weekend! Aiguo From: Eric Berger Date: Friday, February 18, 2022 at 3:35 PM To: "Li, Aiguo (NIH/NCI) [E]" Cc: "r-help@r-project.org" Subject: [EXTERNAL] Re: [R] A question of data frame filter based on another one CAUTION: This

Re: [R] A question of data frame filter based on another one

2022-02-18 Thread Eric Berger
x[apply(y,MAR=1,sum) > 0,] On Fri, Feb 18, 2022 at 10:24 PM Li, Aiguo (NIH/NCI) [E] via R-help < r-help@r-project.org> wrote: > I have tow dataframes as below: > > x > id g > 1 1 21 > 2 3 52 > 3 2 43 > 4 4 94 > 5 5 35 > > > y > id g > 1 1 1 > 2 0 0 > 3 0 1 > 4 1 0 > 5 1 0 > > Resu

Re: [R] Exact 95% CIs around the mean for Weibull distribution

2022-02-18 Thread varin sacha via R-help
Dear R-experts, With weibulltools we can only compute the CI for the median. Best,   Le dimanche 13 février 2022, 12:11:09 UTC+1, Eric Berger a écrit : I did a Google search on "R confidence interval for Weibull distribution parameters" and there were several packages that appea