top_scags {cassowaryr} | R Documentation |
Calculate the top pair of variables or group for each scagnostic
Description
Calculate the top pair of variables or group for each scagnostic
Usage
top_scags(scags_data)
Arguments
scags_data |
A dataset of scagnostic values that was returned by calc_scags or calc_scags_wide |
Value
A data frame where each row is a scagnostic with its highest pair and the associated value
See Also
calc_scags calc_scags_wide top_pairs
Examples
#an example using calc_scags
require(dplyr)
datasaurus_dozen %>%
group_by(dataset) %>%
summarise(calc_scags(x,y, scags=c("monotonic", "outlying", "convex"))) %>%
top_scags()
#an example using calc_scags_wide
data(pk)
scags_data <- calc_scags_wide(pk[,2:5], scags=c("outlying","clumpy","monotonic"))
top_scags(scags_data)
[Package cassowaryr version 2.0.0 Index]