def quote_non_numeric(s):
    """return a prequoted string for non-numerics
    useful for perl and Rscript parameter passing?
    """
    try:
        float(s)
        return s
    except ValueError:
        return '"%s"' % s
