Isak
July 7, 2022, 7:56am
1
Hello,
I am trying to model a montecarlo simulation of incidents using following code
n<-100000000
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
that should work
Cal_risk_A[Cal_risk_A!=0]
Isak
July 7, 2022, 10:44am
3
melih_guven:
Thank you Melih! This was very helpful
system
Closed
July 14, 2022, 10:45am
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.