The function combn is in the standard utils package (i.e. already installed)
choose is also already available in the Special {base}
More Related Contents:
- Removing duplicate combinations (irrespective of order)
- How to generate permutations or combinations of object in R?
- Generate list of all possible combinations of elements of vector
- Table of Interactions – Case with pets and houses
- Unordered combinations of all lengths
- Faster version of combn
- Non-redundant version of expand.grid
- Combinations by group in R
- Combinations of multiple vectors in R
- Collapse / concatenate / aggregate a column to a single comma separated string within each group
- Select / assign to data.table when variable names are stored in a character vector
- Replace all 0 values to NA
- How to convert a list consisting of vector of different lengths to a usable data frame in R?
- How to open CSV file in R when R says “no such file or directory”?
- Splitting a continuous variable into equal sized groups
- How to extract the first n rows per group?
- Get filename without extension in R
- What is the difference between assign() and
- Merge by Range in R – Applying Loops
- ‘Embedded nul in string’ error when importing csv with fread
- Reading two-line headers in R
- Show names of everything in a package
- Advantages of reactive vs. observe vs. observeEvent
- geom_text how to position the text on bar as I want?
- Scraping a dynamic ecommerce page with infinite scroll
- R strsplit with multiple unordered split arguments?
- Reorder rows using custom order
- Calculating percentile of dataset column
- How to adjust facet size manually
- Difference between r-base and r-recommended packages