Convert R TRUE and FALSE values to 1 and 0, and vice versa Here is a simple method to convert R TRUE and FALSE values to 1 and 0, and vice versa.