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 “…”