Skip to content

Instantly share code, notes, and snippets.

@garborg
Created March 3, 2014 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garborg/9324919 to your computer and use it in GitHub Desktop.
Save garborg/9324919 to your computer and use it in GitHub Desktop.
Column name-cleaning options
1:
(no names) -> x, x_1, x_2...
["" | "_*"]... -> x, x_1, x_2...
["1", "2", ...] -> x1, x2...
["t", "t", ...] -> t, t_1...
["t1", "t1", ...] -> t1, t1_1...
2:
(no names) -> x, x1, x2...
["" | "_*"]... -> x, x1, x2...
["1", "2", ...] -> x1, x2...
["t", "t", ...] -> t, t1...
["t1", "t1", ...] -> t1, t1_1
3:
(no names) -> _, _1, _2...
["" | "_*"]... -> _, _1, _2...
["1", "2", ...] -> _1, _2...
["t", "t", ...] -> t, t1...
["t1", "t1", ...] -> t1, t1_1
4:
(no names) -> _, _1, _2...
["" | "_*"]... -> _, _1, _2...
["1", "2", ...] -> _1, _2...
["t", "t", ...] -> t, t_1...
["t1", "t1", ...] -> t1, t1_1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment