R Tip: use isTRUE()

Win-Vector Blog 2018-08-02

Summary:

R Tip: use isTRUE(). A lot of R functions are type unstable, which means they return different types or classes depending on details of their values. For example consider all.equal(), it returns the logical value TRUE when the items being compared are equal: all.equal(1:3, c(1, 2, 3)) # [1] TRUE However, when the items being … Continue reading R Tip: use isTRUE()

Link:

http://www.win-vector.com/blog/2018/06/r-tip-use-istrue/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

Authors:

John Mount

Date tagged:

08/02/2018, 05:16

Date published:

06/11/2018, 11:55