Complete the code to use the pipe operator to pass 'data' to the 'summary' function.
result <- data [1] summary()The %>% operator pipes the left side value as the first argument to the function on the right.
Complete the code to pipe 'numbers' into the 'mean' function using the native R pipe operator.
average <- numbers [1] mean()%>% when the question asks for the native pipe.The native R pipe operator is |> and it passes the left side value as the first argument to the function on the right.
Fix the error in the code by choosing the correct pipe operator to chain 'data' to 'head' function.
data [1] head(3)
The %>% operator correctly pipes 'data' as the first argument to head().
Fill both blanks to create a pipeline that filters 'df' for values > 10 and then selects the 'score' column.
result <- df [1] filter(value [2] 10)
The %>% pipes 'df' into filter(), and the condition uses the greater than operator >.
Fill all three blanks to create a pipeline that takes 'data', filters rows where 'age' is less than 30, then selects 'name' column.
result <- data [1] filter(age [2] 30) [3] select(name)
The %>% pipes 'data' into filter() with the condition <, and then pipes the result into select().