Give examples of “select” and “filter” functions from “dplyr” package.
Answer Posted / Arunjeet Singh
The select() and filter() functions are used to manipulate dataframes in the dplyr package. Here are some examples: nn- `select(df, column1, column2)` : Selects only the specified columns from the dataframe df.n- `filter(df, condition)` : Filters the dataframe df based on a given condition.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers