I have the following vector:
X <- c(\"mama.log\", \"papa.log\", \"mimo.png\", \"mentor.log\")
How do I retrieve another vector that only
Using pipes...
library(tidyverse) c("mama.log", "papa.log", "mimo.png", "mentor.log") %>% .[grepl("^m.*\\.log$", .)] [1] "mama.log" "mentor.log"