Intermediate
R
Q64 / 100
What does "stringr::str_detect(x, pattern)" return?
Correct! Well done.
Incorrect.
The correct answer is B) A logical vector indicating whether each element of x contains the pattern
B
Correct Answer
A logical vector indicating whether each element of x contains the pattern
Explanation
str_detect() returns TRUE or FALSE for each element of x depending on whether the pattern is found, similar to grepl() in base R.
Progress
64/100