In dplyr, how do you filter rows where a specific variable is within a range using filter()?
A. filter(variable >= lower_bound & variable <= upper_bound)
B. filter(between(variable, lower_bound, upper_bound))
C. filter(variable > lower_bound & variable < upper_bound)
D. filter(in_range(variable, lower_bound, upper_bound))
Answer: Option B
Join The Discussion