library(dplyr)
data(survey_data)
# Find all variables related to "trust"
find_var(survey_data, "trust")
# Search only in variable labels
find_var(survey_data, "satisfaction", search = "label")
# Use regex to find numbered items
find_var(survey_data, "^q[0-9]+", search = "name")
Run the code above in your browser using DataLab