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.

How to subset a data frame by taking only the Non NA values of 2 columns in this data frame

I am trying to subset a data frame by taking the integer values of 2 columns om my data frame Subs1&…

r missing-data subset
How do I extract a single column from a data.frame as a data.frame?

Say I have a data.frame: df <- data.frame(A=c(10,20,30),B=c(11,22,33), C=c(111,222,333)) A B C 1 10 11 111 2 20 22 222 3 30 33 333 …

r dataframe subset
Calculating all of the subsets of a set of numbers

I want to find the subsets of a set of integers. It is the first step of "Sum of Subsets" …

java algorithm subset
Subset with unique cases, based on multiple columns

I'd like to subset a dataframe to include only rows that have unique combinations of three columns. My situation is …

r unique subset
Using multiple criteria in subset function and logical operators

If I want to select a subset of data in R, I can use the subset function. I wanted to …

r subset logical-operators operator-precedence
R: How to filter/subset a sequence of dates

I have this data: (complete for December) date sessions 1 2014-12-01 1932 2 2014-12-02 1828 3 2014-12-03 2349 4 2014-12-04 8192 5 2014-12-05 3188 6 2014-12…

r filter subset dplyr
subset a column in data frame based on another data frame/list

I have the following table1 which is a data frame composed of 6 columns and 8083 rows. Below I am displaying the …

r subset apply
Subset a dataframe between 2 dates

I am working with daily returns from a Brazilian Index (IBOV) since 1993, I am trying to figure out the best …

r date subset
Selecting columns in R data frame based on those *not* in a vector

I'm familiar with being able to extract columns from an R data frame (or matrix) like so: df.2 <- …

r dataframe subset
Subsetting data.table set by date range in R

I have a large dataset in data.table that I'd like to subset by a date range. My data set …

r data.table subset date-range slice