[R] Drawing sub-samples

2007-03-08 Thread Anirudh V. S. Ruhil
Folks, I have a dataframe (snippet shown below). demo.df[1:10, 1:6] dirn county year exp exp.waver3 1 43901 Cuyahoga 20060 0 56 2 49098 Pickaway 20060 0 77 3 44164 Portage 20060 0 85 4 44610Wayne 20061 1 76 5 45120

Re: [R] Drawing sub-samples

2007-03-08 Thread jim holtman
try sampling the 'indices' and then using them to get the subset: x.in dirn county year exp exp.wave r3 1 43901 Cuyahoga 2006 00 56 2 49098 Pickaway 2006 00 77 3 44164 Portage 2006 00 85 4 44610Wayne 2006 11 76 5 45120Wayne 2006 0