We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de181d commit 5b544f6Copy full SHA for 5b544f6
dataManagement.Rmd
@@ -472,6 +472,16 @@ head(mydata)
472
head(mydata$age)
473
```
474
475
+# Sort Data {#sec-sortData}
476
+
477
+```{r}
478
+mydata %>%
479
+ arrange(survived, age) #sort by survived (ascending) then by age (ascending)
480
481
482
+ arrange(survived, -age) #sort by survived (ascending) then by age (descending)
483
+```
484
485
# Data Characteristics {#dataCharacteristics}
486
487
## Data Structure
0 commit comments