Hi Sir/Madam
Need an urgent string wrangling to load the data for further analysis.
Basically, prefix 00 to be replaced with 'ED' and keep the numbers after prefix 00.
Result column is the desired outcome.
Thank you very much.
repex is pasted here.
ed.sample <- tibble::tribble(
~id, ~result,
"001565100", "ED1565100",
"001565104", "ED1565104"
)
ed.sample
#> # A tibble: 2 x 2
#> id result
#> <chr> <chr>
#> 1 001565100 ED1565100
#> 2 001565104 ED1565104