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 remove stopwords from a character vector using %in%

I have a data frame with strings that I'd like to remove stop words from. I'm trying to avoid using …

r nlp subset tm stop-words
How to remove groups of observation with dplyr::filter()

For the following data ds <- read.table(header = TRUE, text =" id year attend 1 2007 1 1 2008 1 1 2009 1 1 2010 1 1 2011 1 8 2007 3 8 2008 NA 8 2009 3 8 2010 NA 8 2011 3 9 2007 2 9 2008 3 9 2009 3 9 2010 5 9 2011 5 10 2007 4 10 2008 4 10 2009 2 10 2010 NA 10 2011 NA ") ds&…

r data-manipulation dplyr subset
How to check whether the elements of an ArrayList are all contained in another ArrayList

How can I easily check to see whether all the elements in one ArrayList are all elements of another ArrayList?

java arraylist subset containment
How do I check if one vector is a subset of another?

Currently, I think my best option is to use std::set_intersection, and then check if the size of the …

c++ subset set-intersection
How to take a subset from a netCDF file using latitude/longitude boundaries in R

I have a netCDF file that I wish to extract a subset from defined by latitude/longitude boundaries (i.e. …

r subset latitude-longitude netcdf cdo-climate
How to subset data.frames stored in a list?

I created a list and I stored one data frame in each component. Now I would like to filter those …

r list dataframe subset lapply
Filter data frame rows based on values in vector

What is the best way to filter rows from data frame when the values to be deleted are stored in …

r dataframe subset
How to subset data with advance string matching

I have the following data frame from which I would like to extract rows based on matching strings. > GEMA_…

r string-matching subset
COCO api evaluation for subset of classes

I'm using the python coco api to run evaluation for object detection. I have two files, a ground truth json, …

python subset mscoco pycocotools
Understanding .I in data.table in R

I was playing around with data.table and I came across a distinction that I'm not sure I quite understand. …

r data.table subset