Check that ...
is empty and if so call
base::unique(x, incomparables = incomparables, MARGIN = MARGIN, fromLast = fromLast)
(else throw an error)
uniques(x, ..., incomparables = FALSE, MARGIN = 1, fromLast = FALSE)
x | items to be compared. |
---|---|
... | not used, checked to be empty to prevent errors. |
incomparables | passed to base::unique. |
MARGIN | passed to base::unique. |
fromLast | passed to base::unique. |
base::unique(x, incomparables = incomparables, MARGIN = MARGIN, fromLast = fromLast)
x = c("a", "b") y = c("b", "c") # task: get unique items in x plus y unique(c(x, y)) # correct answer#> [1] "a" "b" "c"#> [1] "a" "b"#> <simpleError: wrapr::uniques unexpected arguments: ‘y’>#> [1] "a" "b" "c"