Hi,

I keep receiving this error when i use the sample():

*Error in sample.int(length(x), size,replace, prob) : *

- incorrect number of probabilities*

This is what I am doing:

```
prod <- sample(prod_table$key, no_of_recs, replace=T, prob=c(1, 2,3,4,5,6))
unit <- sample(c(1,2), no_of_recs, replace=T, prob=c(10, 3))
```

Please let me know what I'm doing wrong.

Thanks!!