Is there a way to generate a new dataframe that produces x lines based on the contents of a column?
for example: I would like to generate a new dataframe with 70 lines of data[1, 1:3], 67 lines of data[2, 1:3], 75lines of data[3,1:3] and so on up to numrow = sum(count). > data pop fam yesorno count 1 126 1 70 1 127 1 67 1 128 1 75 1 126 0 20 1 127 0 23 1 128 0 15 Thanks, Chris Department of Biological Science Florida State University 319 Stadium Drive Tallahassee, FL 32306-4295 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.