Like other verbs in dplyr, filter() takes the first input as the data frame and then executes the conditional statement. The output dataset contains only those rows that satisfy the condition provided within the filter() function. The conditional part could take any valid complex condition that produces only a TRUE/FALSE response.