I'm not sure what you are asking. Basic programming maybe?
var name = "something";
var animation = player.skeleton.data.findAnimation(name + "-run");
If that's missing the mark, you'll need to better explain what you are trying to accomplish. Sometimes it's faster if you know exactly what to ask, sometimes you need to lay out the whole situation so we can give the appropriate advice.