Skip to content
Prev 377087 / 398502 Next

Transformations in Tidyverse (renaming and ordering columns)

I don't know much about the Tidyverse, but more generally the way to
represent ordered categorical data is with a factor. This seems to work:
"Three"))
"Eastern", "Southern"))
value=Value)
# A tibble: 4 x 4
  Label      One   Two Three
  <fct>    <dbl> <dbl> <dbl>
1 Western    163   147   119
2 Northern   105   100    82
3 Eastern    121   106    90
4 Southern    74    70    65


JL
On Mon, Oct 22, 2018 at 7:55 PM Joel Maxuel <j.maxuel at gmail.com> wrote: