How to take a sample of a data set in R : <p>So I have this dataset with 18 variables and about 10,000,000 observations. The set is way to large for my computer to handle so I need to take a smaller sample of the data to analyze it. However, I don't want just a random sample. One of my variables "tip_level" is a factor with two levels, "high" and "low". Is there a way to take a sample of 100,000 observations where 50,000 are "high" and 50,000 are "low" of the variable?</p>
