search for: 0001sq

Displaying 1 result from an estimated 1 matches for "0001sq".

Did you mean: 0001kq
2024 Apr 19
2
passing a modified argument to an S3 method
Is there a way to pass a modified argument from an S3 generic to a method? Here's a non-working example that I want to return "abcd". test <- function(x, y = NULL){ y <- "abcd" UseMethod("test") } test.default <- function(x, y = NULL) y test(x = 3) Is that possible? I've looked around a lot, but can't find any examples or