This function takes a data frame of existing data, a data frame of desired sample sizes for each strata, and a strata variable name, and returns a sample of the existing data based on the sample sizes for the specified strata.
take_samples(existing, toSample, strata)
A data frame containing a sample of the existing data based on the sample sizes for the specified strata.
A data frame containing existing data.
A data frame specifying the desired sample sizes for each strata.
A string specifying the name of the variable used to define strata.