search for: mat1000base

Displaying 1 result from an estimated 1 matches for "mat1000base".

2010 Oct 18
1
Randomly shuffle an array multiple times
Dear List, I have a table i have read into R: Name Yes/No John 0 Frank 1 Ann 0 James 1 Alex 1 etc - 800 different times. What i want to do is shuffle yes/no and randomly re-assign them to the name. I have used sample() and permute(), however there is no way to do this 1000 times. Furthermore, i want to copy the data into a excel spreadsheet in the same order as the data was input so i can