countValidPlot function

Count valid observations per plotId for a given trait