I have a range of numbers
rg <- 25:46
I need to check whether any numbers from that range falls within a string of ranges and return true/false
lrg <- "1:26,48:56,78:99,121:143,165:204,226:243,265:268,290:316"
What i have tried is
for (i in str_split(lrg,',')){ print(noquote(i) %in% rg)}
but this always returns FALSE
probably something simple im missing here