Question: 4.6. Write an S function to produce a matrix whose rows contain the subsets of size r of the first n elements of the vector
4.6. Write an S function to produce a matrix whose rows contain the subsets of size r of the first n elements of the vector v. Ignore the possibility of repeated values in v and give this argument the default value 1: n .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
