[R] Problem with cast {reshape}: Error in match.fun(FUN) : could not find function "Negate"
Erik Iverson
eriki at ccbr.umn.edu
Mon Aug 16 21:06:28 CEST 2010
Negate is in the base package, although apparently not in the
prehistoric version of R you're using here! Updating to the
latest R should work.
Jock Currie wrote:
> Dear All
>
> I'm having problem with some script which worked a few months ago (on a
> different computer that might well have had a different version of R
> installed, so perhaps it has to do with the old version of R?):
>
> library(reshape)
> Loading required package: plyr
>> tble.data <- melt.array(interp, varnames=c("tme","lon","lat"))
>>
>> allyrs.interp <- cast(tble.data,formula= lon ~ lat ~ tme)
> Error in match.fun(FUN) : could not find function "Negate"
>
>> class(interp)
> [1] "array"
>> dim(interp)
> [1] 60 95 59
>> version
> _
> platform i486-pc-linux-gnu
> arch i486
> os linux-gnu
> system i486, linux-gnu
> status
> major 2
> minor 6.2
> year 2008
> month 02
> day 08
> svn rev 44383
> language R
> version.string R version 2.6.2 (2008-02-08)
>
> I might be off track here, but I did an online search for any 'Negate'
> function and the only one I found was in the roxygen package, which I am
> fairly certain was never installed on the computer on which this script
> worked before.
>
> Thanks very much for any help,
>
> Jock Currie
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list