r and min