pct function

Format numbers to percentages This code copied from stats:::format.perc(), to avoid notes about the ::: operator.