arrange()
sorts rows {.build}The input for arrange is one or many columns, and arrange()
sorts the rows in ascending order i.e. from smallest to largest
For example, to sort rows from smallest to largest r colnames(df_numeric_select)
, run the following
`r dataframe_name
%>%arrange(
r colnames(df_numeric_select)
) %>%head(3)`
arrange()
{.build}To reverse this order, use the desc()
function within arrange()
`r dataframe_name
%>%arrange(desc(
r colnames(df_numeric_select)
)) %>%head(3)`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.