[R] Copying matrices with certain probabilities

2009-10-04 Thread William Aue
Hi all! Below is the problem I am struggling with. Let’s say I have a matrix (x) of values: # [,1] [,2] [,3] [,4] #[1,]    1    3    2    1 #[2,]    2    1    3    2 I need to copy the items into a new matrix (y) with certain probability guidelines. I need to set it up such that: 1. for

Re: [R] Copying matrices with certain probabilities

2009-10-04 Thread David Winsemius
On Oct 4, 2009, at 9:36 AM, William Aue wrote: Hi all! Below is the problem I am struggling with. Let’s say I have a matrix (x) of values: # [,1] [,2] [,3] [,4] #[1,]1321 #[2,]2132 I need to copy the items into a new matrix (y) with certain probability