Which of the following is used to store TRUE/FALSE values in R?

Which of the following is used to store TRUE/FALSE values in R?

a) Integer
b) Logical
c) Character
d) Factor

Answer:

b) Logical

Explanation:

The Logical data type is used to store boolean values (TRUE/FALSE) in R.

Scroll to Top