STAT545B contains the functions created for STAT545B 2021W1. The main
function present in this package is group_counts()
which returns the
counts of specified group(s) within a tibble, sorted in decreasing order
of count.
You can install the development version of STAT545B from GitHub with:
# install.packages("devtools")
devtools::install_github("pattiey/STAT545B")
This is a basic example which shows you how to use the group_counts
function in the STAT545B
package:
library(STAT545B)
## basic example code
group_counts(tibble::as_tibble(iris), Species)
#> # A tibble: 3 × 2
#> Species count
#> <fct> <int>
#> 1 setosa 50
#> 2 versicolor 50
#> 3 virginica 50
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.