I am getting the following error:

Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
   0 (non-NA) cases

when running the command

scatterplotMatrix(~THL+WL+BD+TL+Mass|SEX_,by.group=TRUE,plot.points=T,smooth=F,main=spp,)

it works fine without the "by group" option

I assume there are some cases with too few values, how can I get the loop containing this line to skip errors and move on to the next case?



	[[alternative HTML version deleted]]

