minf function

min with na.rm TRUE