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
Le mercredi 04 janvier 2012 à 08:41 -0500, Dan Abner a écrit :
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.
On Jan 4, 2012, at 7:41 AM, Dan Abner dan.abne...@gmail.com wrote:
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?
Yes or inline using an
[mailto:r-help-bounces@r-
project.org] On Behalf Of Dan Abner
Sent: Wednesday, January 04, 2012 14:41
To: r-help@r-project.org
Subject: [R] Using a mathematical expression in sapply()
Hello everyone,
I have the following call to sapply() and error message. Is the most
efficient way
On Jan 4, 2012, at 14:57 , Milan Bouchet-Valat wrote:
Le mercredi 04 janvier 2012 à 08:41 -0500, Dan Abner a écrit :
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
On Jan 4, 2012, at 9:17 AM, peter dalgaard wrote:
On Jan 4, 2012, at 14:57 , Milan Bouchet-Valat wrote:
Le mercredi 04 janvier 2012 à 08:41 -0500, Dan Abner a écrit :
Hello everyone,
I have the following call to sapply() and error message. Is the most
efficient way to deal with this to
On Jan 4, 2012, at 16:32 , David Winsemius wrote:
On Jan 4, 2012, at 9:17 AM, peter dalgaard wrote:
On Jan 4, 2012, at 14:57 , Milan Bouchet-Valat wrote:
Le mercredi 04 janvier 2012 à 08:41 -0500, Dan Abner a écrit :
Hello everyone,
I have the following call to sapply() and error
7 matches
Mail list logo