Position: omit columns

df4 |> 
  separate_wider_position(
    x, 
    widths = c(year = 4, 2, state = 2)
  )
## # A tibble: 3 × 2
##   year  state
##   <chr> <chr>
## 1 2022  TX   
## 2 2021  LA   
## 3 2023  CA