Code to extend sequence by reverse complement

I want to look into how extending the sequence by the reverse complement
before doing calculations has an effect on the results.