R provides a logical data type for storing the values TRUE and FALSE. When logical data are transferred to a SAS data type, the value TRUE is converted to the number 1 and the value FALSE to the number 0.