Hello all, Thanks for the help. I was able to run the code by removing random seed statement and putting set.seed(1) Sincerely, Maddy -- View this message in context: http://n4.nabble.com/the-error-in-DoSimulateRF-function-tp1592572p1592709.html Sent from the R help mailing list archive at Nabble.com.