rename cols froum dplyr::count to use with other functions, renaming to "from", "to" and "value" for n (frequency.)'
Examples
df <- data.frame(n1 = c(1,1,3), n2 = c(2,3,2), n = c(10, 12, 14))
df
#> n1 n2 n
#> 1 1 2 10
#> 2 1 3 12
#> 3 3 2 14
rename_cols(df)
#> from to value
#> 1 1 2 10
#> 2 1 3 12
#> 3 3 2 14