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.

R, filter matrix based on variance cut-offs

See edit below Using R, I would like to filter a matrix (of gene expression data) and keep only the …

r subset variance quantile
Filter pandas data frame for col == None

I have a data frame data_df with multiple columns, one of which is c which holds country names. How …

python pandas subset data-cleaning
Remove group from data.frame if at least one group member meets condition

I have a data.frame where I'd like to remove entire groups if any of their members meets a condition. …

r subset plyr
Rank within subsets of data in spotfire

I am trying to rank subsets of my data in spotfire. Lets say I have a data table that has …

subset tibco spotfire dense-rank
subsetting in xts using a parameter holding dates

I am familiar with the xts subsetting abilities. However, I can't find an elegant way to subset a parameterized range …

r subset xts
Plot quantiles in R

I'm trying to find the mean, mean ± standard deviation and certain quantiles (5%, 50%, 95%) for the columns of a matrix. The matrix …

r graph plot subset quantile
listing all subsets of a vector for a given size

The function choose(n,k) tells us how many subsets of size k exists for a set of n distinct …

r list subset enumerate
How to subset data using multiple characters in a column

This is a very simple question. I have a lengthy dataset and want to create a subset based on certain …

r subset dataformat
How to define the subset operators for a S4 class?

I am having trouble figuring out the proper way to define the [, $, and [[ subset operators for an S4 class. Can …

oop r subset s4
Subsetting a vector using another boolean vector in R

Using the following two R vectors, I want to extract a subset of valMe using the boolean values in boolMe. …

r subset iterable-unpacking