Learn R Programming

swirlify (version 0.5.3)

find_questions: Get question numbers for any questions matching a regular expression

Description

Get question numbers for any questions matching a regular expression

Usage

find_questions(regex)

Arguments

regex

The regular expression to look for in the lesson. This gets passed along to stringr::str_detect, so the same rules apply. See str_detect.

Value

A vector of integers representing question numbers.

Examples

Run this code
# NOT RUN {
set_lesson()
find_questions("plot")
find_questions("which")
# }

Run the code above in your browser using DataLab