Skip to content
Prev 310002 / 398506 Next

For the function loc()

On Nov 6, 2012, at 10:50 AM, Sarah Goslee wrote:

            
@yuyaxuan <309772486 at qq.com>

That code looks dangerous. I guessing it was written by an inexperienced R programmer and that 'loc' is a synonym for `which`. You should not be testing or equality of floating point numbers .... read the FAQ.

I searched using findFn in the sos package, and could not find such a function, so my guess is that it was defined in the preceding code that you have not shown.