
Use showMethods("chol2inv") for currently available ones. StandardGeneric for "chol2inv" defined from package "base" Here is an example of an S4 function: > library(Matrix) The S4 system is a newer method dispatch system and is an alternative to the S3 system. Registered S3 method for t from namespace stats print.ts time.ts* [ getAnywhere(t.ts)Ī single object matching ‘t.ts’ was found monthplot.ts* na.omit.ts* Ops.ts* plot.ts

diffinv.ts* diff.ts kernapply.ts* lines.ts The S3 method dispatch systemįor S3 classes, you can use the methods function to list the methods for a particular generic function or class. UseMethod("t") is telling you that t() is a ( S3) generic function that has methods for different object classes. How can I find the source code for those? Primitive function does? Similarly, some functions call. > matrixįunction (data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames = NULL) In still other cases, there's a bit of R code, but most of work seems to be done somewhere else.

makeNamesTs(.), dframe = dframe, union = TRUE) In other cases, I can see that R functions are being called, but I can't find the source code for those functions. Use showMethods("with") for currently available ones. Methods may be defined for arguments: data StandardGeneric for "with" defined from package "base" Is there a difference between when I see UseMethod and when I see standardGeneric and showMethods, as with with? > with In this case, what does UseMethod("t") mean? How do I find the source code that's actually being used by, for example: t(1:10)?

I know I can print a function by typing its name at the prompt: > t If this information is not provided, the newsletters will not be made available.I want to look at the source code for a function to see how it works. Required information is indicated by an asterisk. In the event of a dispute, you can refer the matter to the French National Commission for Information Technology and Civil Liberties (Commission Nationale de l'Informatique et des Libertés). You may exercise these rights at any time by using the unsubscribe link in the newsletters or by e-mail. You have the right to request, access, rectify, delete, oppose for legitimate reasons, and transfer all of your data, as well as the right to formulate specific and general instructions concerning the storage, deletion and communication of all post-mortem data. This data is stored until you revoke your consent, and is intended for use by Bandai Namco's services responsible for customer relationship management. Such data processing is carried out only with your consent. In accordance with Regulation 2016/679 of 27 April 2016, your full name and email address will be used by Bandai Namco for the purpose of providing you with a newsletter and information about Bandai Namco's activities.
