dplyr

filter()

The filter() function is use to find rows of data that match a condition. To be retained, the row must return a value of TRUE for all conditions. From the dplyr package Syntax: filter(.data, …, .by = NULL, .preserve = FALSE) Arguments .data: a data frame …:   We will sue the ‘cars’ dataset to […]

filter() Read More »

arrange()

arrange() is a part of the dplr package. Description arrange() orders the rows of a data frame by the values of selected columns. Unlike other dplyr verbs, arrange() largely ignores grouping; you need to explicitly mention grouping variables (or use .by_group = TRUE) in order to group by them, and functions of variables are evaluated

arrange() Read More »

Scroll to Top