Is there any function in R that will select equal number of units from every level of a variable? For example I have a data set consisting of a variable called "taste" and there are three levels of the variable taste say "bad", "normal" and "good". Now I want to select a sample which draws equal number of units from each level of the taste variable. How can I select such a sample in R?
            Asked
            
        
        
            Active
            
        
            Viewed 1,467 times
        
     
    