Examveda
Examveda

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


This Question Belongs to R Programming >> Data Manipulation With Dplyr

Join The Discussion

Related Questions on Data Manipulation with dplyr