convert integer and numeric vectors into string representations with an arbitrary base