tiernanmartin / home-and-hope

A data set of suitable sites for the development of affordable housing and/or early learning centers in King County, Washington
https://tiernanmartin.github.io/home-and-hope/2-communication/3-bookdown/_book/index.html
MIT License
3 stars 0 forks source link

Make it easier to reorder fields in `inventory` #55

Closed tiernanmartin closed 6 years ago

tiernanmartin commented 6 years ago

Similar columns can be grouped together by adding a common prefix (e.g., SUIT_* or FILTER_*).

Many of the columns already have common prefixes but some do not.

Once all the columns are assigned a group and a prefix the order can be changed using select() like so:

inventory %>%
  select(starts_with("[prefix string]"), 
         starts_with("[another prefix string]"), 
         everything())
tiernanmartin commented 6 years ago

I'm deciding against doing this because it will add lots of unnecessary work to the interface dev team's plate.