Returning matching subsets of data based on multiple conditions

This page summarizes the projects mentioned and recommended in the original post on /r/Rlanguage

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • reprex

    Render bits of R code for sharing, e.g., on GitHub or StackOverflow.

  • df_sl = data.frame( SubLvlList = c( '1-Z', '2-Z', '1-Y', '2-Y' ) ) data.frame( ReturnMatch = sapply( df_tl[,1], function(x) { df_sl[,1][sapply(df_sl[,1], function(y) {grepl(y, x)})] }, USE.NAMES = FALSE) ) #> ReturnMatch #> 1 1-Z #> 2 1-Z #> 3 2-Z #> 4 2-Z #> 5 1-Y #> 6 1-Y #> 7 2-Y #> 8 2-Y #> 9 1-Z #> 10 1-Z #> 11 2-Z #> 12 2-Z #> 13 1-Y #> 14 1-Y #> 15 2-Y #> 16 2-Y ``` Created on 2023-03-25 with [reprex v2.0.2](https://reprex.tidyverse.org)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts