Open rgrannell1 opened 10 years ago
isTRUE takes about 627 nanoseconds, while a boolean check takes about 174 nanoseconds. isTRUE calls down to identical, so it should be possible to make a fast replacement just for logical values.
isTRUE
identical
is_true(TRUE) => TRUE is_true(FALSE ) => FALSE is_true(NA) => FALSE is_true(_) => Error
isTRUE
takes about 627 nanoseconds, while a boolean check takes about 174 nanoseconds. isTRUE calls down toidentical
, so it should be possible to make a fast replacement just for logical values.