How to examine the code of a function in R that's object class sensitive

后端 未结 5 679
南笙
南笙 2020-12-07 15:35

I\'m trying to write a function to do a particular job (in my case, analyse a data set for outliers) so the first things I want to do is look at how other people have done s

5条回答
  •  萌比男神i
    2020-12-07 16:04

    For another case not covered in the answers here see the answers reported in "view source code in R"

    which deals with the case of functions that show up as "Non-visible" when you run methods(function.I.am.looking.for)

    In short you can then use a command of the form: package:::function.class to see the code you want.

提交回复
热议问题