Hello all, suppose I have a time-stamp: "16-02-2009 00:20:00" and other array that stores lot of time values. My tolerance limit = +5 minutes I would like to find values from this array matching with the value: "16-02-2009 00:20:00" + tolerance Before I write some function, I would like to know: whether any readymade function is available? I checked compare() or which() . but not exactly what I would like to have. Any suggestion is appreciated. Thank you. Best Regards, Suresh -- View this message in context: http://www.nabble.com/is-there-any-way-to-find-match-with-tolerance-tp22037475p22037475.html Sent from the R help mailing list archive at Nabble.com.
Gabor Grothendieck
2009-Feb-16 15:41 UTC
[R] is there any way to find match with tolerance
?all.equal has a tolerance argument. On Mon, Feb 16, 2009 at 8:41 AM, Suresh_FSFM <suresh.ghalsasi at gmail.com> wrote:> > Hello all, > > suppose I have a time-stamp: "16-02-2009 00:20:00" > and other array that stores lot of time values. > > My tolerance limit = +5 minutes > I would like to find values from this array matching with the value: > "16-02-2009 00:20:00" + tolerance > Before I write some function, I would like to know: whether any readymade > function is available? > I checked compare() or which() . but not exactly what I would like to have. > > Any suggestion is appreciated. > > Thank you. > > Best Regards, > Suresh > > > -- > View this message in context: http://www.nabble.com/is-there-any-way-to-find-match-with-tolerance-tp22037475p22037475.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >
Thank you for the positve response. Gabor Grothendieck wrote:> > ?all.equal has a tolerance argument. > > On Mon, Feb 16, 2009 at 8:41 AM, Suresh_FSFM <suresh.ghalsasi at gmail.com> > wrote: >> >> Hello all, >> >> suppose I have a time-stamp: "16-02-2009 00:20:00" >> and other array that stores lot of time values. >> >> My tolerance limit = +5 minutes >> I would like to find values from this array matching with the value: >> "16-02-2009 00:20:00" + tolerance >> Before I write some function, I would like to know: whether any readymade >> function is available? >> I checked compare() or which() . but not exactly what I would like to >> have. >> >> Any suggestion is appreciated. >> >> Thank you. >> >> Best Regards, >> Suresh >> >> >> -- >> View this message in context: >> http://www.nabble.com/is-there-any-way-to-find-match-with-tolerance-tp22037475p22037475.html >> Sent from the R help mailing list archive at Nabble.com. >> >> ______________________________________________ >> 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. >> > > ______________________________________________ > 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. > >-- View this message in context: http://www.nabble.com/is-there-any-way-to-find-match-with-tolerance-tp22037475p22040233.html Sent from the R help mailing list archive at Nabble.com.