diff --git a/README.Rmd b/README.Rmd index 19d5e76..226edc0 100644 --- a/README.Rmd +++ b/README.Rmd @@ -22,7 +22,7 @@ knitr::opts_chunk$set( ## Overview -R uses __factors__ to handle categorical variables, variables that have a fixed and known set of possible values. Factors are also helpful for reordering character vectors to improve display. The goal of the __forcats__ package is to provide a suite of tools that solve common problems with factors, including changing the order of levels or the values. Some examples include: +R uses __factors__ to handle categorical variables, variables that have a fixed and known set of possible values. Factors are also helpful for reordering character vectors to improve display. The goal of the forcats package is to provide a suite of tools that solve common problems with factors, including changing the order of levels or the values. Some examples include: * `fct_reorder()`: Reordering a factor by another variable. * `fct_infreq()`: Reordering a factor by the frequency of values. diff --git a/README.md b/README.md index 72a22c9..d0fa288 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ coverage](https://codecov.io/gh/tidyverse/forcats/branch/main/graph/badge.svg)]( R uses **factors** to handle categorical variables, variables that have a fixed and known set of possible values. Factors are also helpful for -reordering character vectors to improve display. The goal of the -**forcats** package is to provide a suite of tools that solve common -problems with factors, including changing the order of levels or the -values. Some examples include: +reordering character vectors to improve display. The goal of the forcats +package is to provide a suite of tools that solve common problems with +factors, including changing the order of levels or the values. Some +examples include: - `fct_reorder()`: Reordering a factor by another variable. - `fct_infreq()`: Reordering a factor by the frequency of values. diff --git a/man/figures/README-ordered-plot-1.png b/man/figures/README-ordered-plot-1.png index ef416d8..cb8e909 100644 Binary files a/man/figures/README-ordered-plot-1.png and b/man/figures/README-ordered-plot-1.png differ diff --git a/man/figures/README-unordered-plot-1.png b/man/figures/README-unordered-plot-1.png index 7c98568..3bee7ca 100644 Binary files a/man/figures/README-unordered-plot-1.png and b/man/figures/README-unordered-plot-1.png differ diff --git a/vignettes/forcats.Rmd b/vignettes/forcats.Rmd index 020ec94..e4627b5 100644 --- a/vignettes/forcats.Rmd +++ b/vignettes/forcats.Rmd @@ -15,7 +15,7 @@ knitr::opts_chunk$set( ) ``` -The goal of the **forcats** package is to provide a suite of useful tools that solve common problems with factors. +The goal of the forcats package is to provide a suite of useful tools that solve common problems with factors. Factors are useful when you have categorical data, variables that have a fixed and known set of values, and when you want to display character vectors in non-alphabetical order. If you want to learn more, the best place to start is the [chapter on factors](https://r4ds.had.co.nz/factors.html) in R for Data Science.