Substitute dots in column names with underscores.

use_underscore(data)

Arguments

data

data frame

Value

data frame with updated column names

Examples

names(airquality)
#> [1] "Ozone" "Solar.R" "Wind" "Temp" "Month" "Day"
use_underscore(airquality) %>% names()
#> [1] "Ozone" "Solar_R" "Wind" "Temp" "Month" "Day"