i.def(NA, 10, 20, 30) ## 10
i.def(TRUE, 10) ## 10
i.def(TRUE, 10, 20) ## 20
i.def(FALSE, 10, 20, 0) ## 0
u.true(1) ## FALSE, since 1 is not of mode logical
u.notfalse(2) ## TRUE
u.notfalse(FALSE) ## FALSE
Run the code above in your browser using DataLab