Re: [R] How do I turn NA's to zeroes when a combination lacks one element?

2012-01-29 Thread C_Crown
Thank you so very much for your help. That worked perfectly. Yes, it's homework, but hopefully what I'm learning with the homework I'll be able to apply to my own research in the future, so I'd really like to learn the program. And by the by, the "someone" was a classmate. Thanks again! Crystal

[R] How do I turn NA's to zeroes when a combination lacks one element?

2012-01-29 Thread C_Crown
Hi all, I am very new to R. I am taking a course and am trying to complete my first assignment. For the assignment I have to get the program to generate different color combinations possible for a sample size of 55 with the probabilities of each color being chosen as: .24, .24, .16, .20, .13, .14