Hello everyone,

I have the following call to sapply() and error message. Is the most
efficient way to deal with this to make sum(!is.na(x)) a function in a
separate line prior to this call? If not, please advise.

N.Valid=sapply(x,sum(!is.na(x)))
Error in match.fun(FUN) :
  'sum(!is.na(x))' is not a function, character or symbol


Thanks!

Dan

	[[alternative HTML version deleted]]

