You would need to tell us what it does (and what the inputs are). I think it is likely that compare(x, y) in S-PLUS is the same as sign(x-y) in R, at least with numeric vector inputs.
On Thu, 20 Apr 2006, Bellinger Instruments P/L wrote: > Hi > I have a source file in Splus that fails in R as I am using the Splus > function compare(). > > compare( ii * 1e9,f ) where ii is a single variable and f > is a vector of length 146 > > R returns with no function error > > Can anyone inform me how I can do this in R > > > thanks in advance > > Bob Kelly > > Bellinger Instruments Pty Ltd > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html