Hi,
  This is Madhu and I have a following doubt please give a solution...

**>i have the following data frame
from this i want to select a 80% of data randomly in such a way that
if the selected records are 1 and then we have to get the all records corresponding to 1
similarly for 2 also and soon......... help me

    data<-data.frame(x=c(1,1,2,2,2,3,4,4,4),y=c(23,45,87,46,78,12,87,79));**


Regards,
Madhu.

	[[alternative HTML version deleted]]

