I am trying to model a montecarlo simulation of incidents using following code
Cal_risk_A<-rnorm(n, 18.7688, 3.80)*rpois(n,1/9)
I want to include a term or condition where outcomes of each simulation that are zero (= 0) are deleted, or removed. Which is the easiest way to to it?
Thank you in advance