Get the name of the variable passed as argument, limit number of characters in case of failure
getName(x, alt = "x", max.nchar = 20)
Variable whose name you want to extract
String: If name derived from deparse(substitute(x))
exceeds max.nchar
characters, use this name instead
Integer: Maximum N of characters to allow for name
One way to test is to use learn with x.name = NULL, y.name = NULL