On Mon, Oct 18, 2010 at 4:38 AM, John Haart wrote:
> 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
Dear List,
I have a table i have read into R:
NameYes/No
John0
Frank 1
Ann 0
James 1
Alex1
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 thi
2 matches
Mail list logo