Human-resource management

What is the purpose of a training-needs analysis in workforce planning?