A long time ago on the lavaan list, somebody asked to have kd() use any existing colnames associated with the input argument covmat. This push does that: if you send in a covmat with non-null colnames, then you get out a data.frame that uses the colnames. If the covmat has null colnames, you still get a data.frame out.
In case it matters, the lavaan list subject was "lavaan Error: missing observed variables in dataset"
A long time ago on the lavaan list, somebody asked to have kd() use any existing colnames associated with the input argument covmat. This push does that: if you send in a covmat with non-null colnames, then you get out a data.frame that uses the colnames. If the covmat has null colnames, you still get a data.frame out.
In case it matters, the lavaan list subject was "lavaan Error: missing observed variables in dataset"