Our great sponsors
-
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.
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)