Wrangling rows

group data by levels of column

group_by()

{dplyr}

count unique values of variables

count()

{plyr}

change order of rows based on values of columns

arrange()

{dplyr}

remove grouping

ungroup()

{dplyr}

apply function to columns and return TRUE if any values are TRUE

if_any()

{dplyr}

return current group size

n()

{dplyr}

summarize data usually by grouping variable

summarize()

{dplyr}

drop rows containing missing values

drop_na()

{tidyr}

keep rows based on values of columns

filter()

{dplyr}

order in descending order

desc()

{dplyr}

count unique values of variables

count()

{dplyr}

apply transformation across multiple columns

across()

{dplyr}

The end!