Hello, I am currently operating R version 2.0.1. I am running an analysis that uses previously written fuctions that I load into R 2.0.1 via the file menu (file-->load workspace). There are other colleagues on my team that are operating the same version of R, using the same input datafile, the same workspace, and the same R code to run this analysis. Their analysis runs without any errors, yet mine does does not. The analysis that we are running attempts to create a sample of individuals that meets certain compositional demographic criteria. To achieve this we ask R to run though up to 10,000 iterations before producing a sample that BEST (i.e., with the smallest rate of error) conforms to the proportions of these demographic characteristics that we specify. When I run this analysis, R produces an output file that results from fewer interations with higher error rates than what my colleagues have achieved when running the same exact code on the same exact data. The error message that populates my R output window is as follows: "Error in sample(length(x), size, replace, prob) : NA in probability vector". I do not understand why I receive this error message, whereas my colleages do not. Any guidance/advice would we extremely helpful!
Thank You! Gabriella Delle Donne [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.