Update NED_FUNCTIONS.R

One last fix.