Top "Subset" questions

A subset consists of those elements selected from a larger set of elements, by their position in the larger set or other features, such as their value.

Subset data frame based on number of rows per group

I have data like this, where some "name" occurs more than three times: df <- data.frame(name = c("…

r dataframe subset r-faq
How does createDataPartition function from caret package split data?

From the documentation: For bootstrap samples, simple random sampling is used. For other data splitting, the random sampling is done …

r subset r-caret data-partitioning
R selecting all rows from a data frame that don't appear in another

I'm trying to solve a tricky R problem that I haven't been able to solve via Googling keywords. Specifically, I'm …

r dataframe subset
Subset data /extracting data based on first 7 letters

I have a huge data set with genotypic information from different populations. I would like to sort the data by …

r subset names
jq: selecting a subset of keys from an object

Given an input json string of keys from an array, return an object with only the entries that had keys …

json select key subset jq
Difference between subarray, subset & subsequence

I'm a bit confused between subarray, subsequence & subset if I have {1,2,3,4} then subsequence can be {1,2,4} OR {2,4} etc. So basically …

subset arrays subsequence
How to iteratively generate k elements subsets from a set of size n in java?

I'm working on a puzzle that involves analyzing all size k subsets and figuring out which one is optimal. I …

java subset
How to find all subsets of a set in JavaScript?

I need to get all possible subsets of an array. Say I have this: [1, 2, 3] How do I get this? [], [1], [2], [1, 2], [2, 3], [1, 3], [1, 2, 3] I …

javascript subset powerset
Matching IDs in two datasets

I have two sets of data, comprising pre and a post data. Respondents have unique IDs, and I want to …

r matching subset
How to sort and filter data.frame in R?

I understand how to sort a data frame: df[order(df$Height),] and I understand how to filter (or subset) …

r sorting dataframe subset