Skip to content

Instantly share code, notes, and snippets.

@agila5
Created October 21, 2021 16:10
Show Gist options
  • Save agila5/1e26d2bdc1a9015a55421ff677ecba3b to your computer and use it in GitHub Desktop.
Save agila5/1e26d2bdc1a9015a55421ff677ecba3b to your computer and use it in GitHub Desktop.
data_old <- tibble::tibble(
  "Location_Northing_OSGR" = c(1, 2, 3), 
  '1st_Road_Number' = c("a", "b", "c")
)
janitor::clean_names(data_old, replace = c("1" = "fir"))
#> # A tibble: 3 x 2
#>   location_northing_osgr first_road_number
#>                    <dbl> <chr>            
#> 1                      1 a                
#> 2                      2 b                
#> 3                      3 c

Created on 2021-10-21 by the reprex package (v2.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment