[18671] in s-news-athena
[S] Error message meaning
daemon@ATHENA.MIT.EDU (Jonathan Monteleone)
Tue Jul 20 00:54:01 1999
Message-Id: <199907200449.QAA07933@mailhost.auckland.ac.nz>
Date: Tue, 20 Jul 1999 16:52:01 +1200
To: s-news@wubios.wustl.edu
From: Jonathan Monteleone <monte@ihug.co.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Error in aggregate.data.frame(fileIN[, 3], list(fileIN[, 1..: FUN did not
always return a scalar
Dumped
Here is the command that generates the error...
pepar <- aggregate.data.frame(fileIN[,3],list(fileIN[,1],fileIN[,2]),
function(pei) {
#manual trim of 1st and last value
spei <- sort(pei) ; spei[1] <- NA ; spei[length(spei)] <- NA ; spei <-
na.omit(spei)
me <- mean(spei,na.rm=T)
se <- sqrt(var(spei))/sqrt(length(spei)-1)
test <- cbind(me,se)
print(test)
}
)
Any help appreciated
Cheers -Jon
=================================================================
Mr Jonathan Monteleone (MS)
Department of Pharmacology & Clinical Pharmacology
School of Medicine and Health Sciences
University of Auckland
Auckland, New Zealand
Phone: +64.9.373.7599 ext. 6732 Fax: +64.9.373.7556
Home: +64.9.529.1477
Email: monte@ihug.co.nz
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news