Find S3 method from its name
s3_get_method(name)
name | A string or unquoted symbol |
---|
A function, or an error stating why the method could not be found
s3_get_method(mean.Date)#> function (x, ...) #> .Date(mean(unclass(x), ...)) #> <bytecode: 0x57312c0> #> <environment: namespace:base>s3_get_method(weighted.mean.Date)#> function (x, w, ...) #> structure(weighted.mean(unclass(x), w, ...), class = "Date") #> <bytecode: 0x4ccb0a0> #> <environment: namespace:stats>