R Tip: Be Wary of “…”

Win-Vector Blog 2018-08-02

Summary:

R Tip: be wary of “...“. The following code example contains an easy error in using the R function unique(). vec1 <- c("a", "b", "c") vec2 <- c("c", "d") unique(vec1, vec2) # [1] "a" "b" "c" Notice none of the novel values from vec2 are present in the result. Our mistake was: we (improperly) tried … Continue reading R Tip: Be Wary of “…”

Link:

http://www.win-vector.com/blog/2018/06/r-tip-be-wary-of/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

Authors:

John Mount

Date tagged:

08/02/2018, 05:16

Date published:

06/15/2018, 12:31