 class='co'>## existing cluster</span>
<span class='va'>AllRes</span> <span class='op'>&lt;-</span> <span class='fu'>trainLGMM</span><span class='op'>(</span>
  data <span class='op'>=</span> <span class='va'>d</span>,
  idvar <span class='op'>=</span> <span class='st'>"ID"</span>,
  assessmentvar <span class='op'>=</span> <span class='st'>"Assess"</span>,
  newdata <span class='op'>=</span> <span class='va'>nd</span>,
  tuneGrid <span class='op'>=</span> <span class='va'>tuneGrid</span>,
  ncores <span cla