Retrieve the most-taken cards across a history of runs.
Arguments
- runhistory
An STS2RunHistory object, filtered if necessary.
- n
The number of results to retrieve, or
NULLto retrieve all.- char
The character/s to filter by (or
NULLto return all).- return_unique
Return only 1 entry per unique card in a run. This gives more of a metric of "runs where this card was in your deck".
- ignore_basics
Don't consider basic cards (strike/defend).
Examples
if (FALSE) { # interactive()
myruns <- load_sts_history()
topcards(myruns)
topcards(myruns$filter_outcome("win"), n = 20, return_unique = TRUE)
}