I want to draw a random sample from my dataset, using different proportions for each value of a factor variable, as well as using weights stored in some other column.