Meta tags:
Headings (most frequently used words):
generate, an, object, from, class, methods, new, description, usage, arguments, initialize, references, see, also, examples, package, documentation, browse, packages, we, want, your, feedback,
Text of the page (most frequently used words):
the (66), class (61), for (39), object (37), #methods (31), and (24), classes (22), #method (22), from (20), new (20), initialize (17), objects (15), function (14), arguments (13), package (11), slots (11), generic (11), this (10), documentation (10), call (10), functions (9), that (8), packages (8), your (7), can (7), have (7), definitions (7), definition (7), generate (7), argument (7), are (7), corresponding (6), specified (6), create (6), with (6), length (6), see (6), inherited (5), basic (5), formal (5), version (5), names (5), language (4), vector (4), methodslist (4), use (4), name (4), track (4), not (4), named (4), information (3), code (3), note (3), you (3), should (3), other (3), find (3), test (3), slot (3), show (3), inheritance (3), setmethod (3), superclass (3), defined (3), setclass (3), represent (3), representation (3), defunct (3), two (3), callnextmethod (3), unnamed (3), default (3), numeric (3), these (3), interpreted (3), more (2), embedding (2), remove (2), website (2), github (2), provide (2), support (2), run (2), rdrr (2), home (2), improve (2), page (2), what (2), its (2), list (2), substitutedirect (2), signature (2), style (2), setoldclass (2), specify (2), explicitly (2), setis (2), group (2), setgeneric (2), super (2), utilities (2), prototype (2), reference (2), managing (2), shell (2), associated (2), non (2), types (2), methodwithnext (2), plus (2), additional (2), skeleton (2), file (2), general (2), deprecated (2), linearmethodslist (2), versions (2), get (2), getclass (2), description (2), using (2), including (2), superclasses (2), classes_details (2), ydata (2), define (2), must (2), still (2), supplied (2), stop (2), different (2), lengths (2), same (2), examples (2), into (2), discussion (2), describing (2), such (2), pass (2), will (2), calls (2), first (2), passed (2), string (2), character (2), generating (2), close, customizing, embed, read, snippets, copy, clipboard, add, following, snippet, personal, blog, ian, mutexlabs, com, issue, tracker, tweet, rdrrhq, technical, individual, contact, authors, want, feedback, forge, bioconductor, cran, browse, online, submit, extra, info, optional, suggestion, looking, content, looks, wrong, builtin, special, zbasicfunslist, validity, validobject, used, internally, control, tracing, traceclasses, report, about, selection, testinheritedmethods, structures, structureclasses, envrefclass, stdrefclass, all, showmethods, setsclass, register, old, save, set, actions, loading, setloadactions, setgroupgeneric, union, setclassunion, coercing, setas, specific, kinds, selectsuperclasses, extension, relations, sclassextension, s4groupgeneric, contain, s3part, rmethodutils, construct, removemethod, fields, treated, oop, refclass, rclassutils, promptmethods, promptclass, objectswithpackage, structure, nonstructure, nextmethod, utility, compatibility, methodutilities, methodsupport, dispatch, methods_for_s3, methods_for_nongenerics, methods_details, methoddefinition, localized, based, localrefclass, elements, languageel, unevaluated, languageclasses, check, sealed, issealedmethod, introduction, inheritedslotnames, manage, implicit, implicitgeneric, look, hasarg, given, getpackagename, getmethod, tools, genericfunctions, genericfunction, fix, saved, previous, fixprevious, findmethods, findclass, source, without, evalsource, environment, environmentclass, internal, representing, empty, emptymethodslist, signatures, dotsmethods, creating, line, classrepresentation, classname, compute, adjacency, matrix, classestoam, combine, columns, rows, cbind2, coerced, certain, cancoerce, current, callgeneric, data, basicclasses, force, belong, link, seq_along, trackcurve, smooth, ysmooth, ensure, equal, alternative, allows, friendly, would, make, vice, versa, details, relation, also, chambers, john, 2016, chapman, hall, chapters, extending, references, etc, implicitly, one, type, concatenated, resulting, only, simple, since, requirement, return, target, concept, simpleinheritanceonly, some, existing, their, second, often, written, when, natural, parameters, include, along, via, helps, future, subclasses, does, difficult, included, initializing, assigned, correspondingly, override, regardless, order, which, appear, interpretation, generator, specialized, particular, defining, appropriate, called, directly, begins, copying, then, followed, intialize, section, properties, either, usual, case, value, returned, includes, attribute, avoiding, ambiguity, identically, usage, returns, newly, allocated, identified, turn, passing, values, browser, docs,
Text of the page (random words):
new generate an object from a class rdrr io find an r package r language docs run r in your browser home r documentation methods new generate an object from a class new generate an object from a class new r documentation generate an object from a class description a call to new returns a newly allocated object from the class identified by the first argument this call in turn calls the method for the generic function initialize corresponding to the specified class passing the arguments to this method in the default method for initialize named arguments provide values for the corresponding slots and unnamed arguments must be objects from superclasses of this class a call to a generating function for a class see setclass will pass its arguments to a corresponding call to new usage new class initialize object arguments class either the name of a class a character string the usual case or the object describing the class e g the value returned by getclass note that the character string passed from a generating function includes the package name as an attribute avoiding ambiguity if two packages have identically named classes arguments to specify properties of the new object to be passed to initialize object an object see the initialize methods section initialize methods the generic function initialize is not called directly a call to new begins by copying the prototype object from the class definition and then calls intialize with this object as the first argument followed by the arguments the interpretation of the arguments in a call to a generator function or to new can be specialized to particular classes by defining an appropriate method for initialize in the default method unnamed arguments in the are interpreted as objects from a superclass and named arguments are interpreted as objects to be assigned into the correspondingly named slots explicitly specified slots override inherited information for the same slot regardless of the order in which the arguments appear the initialize methods do not have to have as their second argument see the examples initialize methods are often written when the natural parameters describing the new object are not the names of the slots if you do define such a method you should include as a formal argument and your method should pass such arguments along via callnextmethod this helps the definition of future subclasses of your class if these have additional slots and your method does not have this argument it will be difficult for these slots to be included in an initializing call see initialize methods for a discussion of some classes with existing methods methods for initialize can be inherited only by simple inheritance since it is a requirement that the method return an object from the target class see the simpleinheritanceonly argument to setgeneric and the discussion in setis for the general concept note that the basic vector classes numeric etc are implicitly defined so one can use new for these classes the arguments are interpreted as objects of this type and are concatenated into the resulting vector references chambers john m 2016 extending r chapman hall chapters 9 and 10 see also classes_details for details of class definitions and setoldclass for the relation to s3 classes examples using the definition of class track from link setclass a new object with two slots specified t1 new track x seq_along ydata y ydata a new object including an object from a superclass plus a slot t2 new trackcurve t1 smooth ysmooth define a method for initialize to ensure that new objects have equal length x and y slots in this version the slots must still be supplied by name setmethod initialize track function object object callnextmethod if length object x length object y stop specified x and y of different lengths object an alternative version that allows x and y to be supplied unnamed a still more friendly version would make the default x a vector of the same length as y and vice versa setmethod initialize track function object x numeric 0 y numeric 0 object callnextmethod object if length x length y stop specified x and y of different lengths object x x object y y object methods as force an object to belong to a class basicclasses classes corresponding to basic data types callgeneric call the current generic function from a method cancoerce can an object be coerced to a certain s4 class cbind2 combine two objects by columns or rows classes s4 class documentation classes_details class definitions classestoam compute an adjacency matrix for superclasses of class classname class names including the corresponding package classrepresentation class class objects documentation using and creating on line documentation for classes and dotsmethods the use of in method signatures emptymethodslist class internal class representing empty methods list environmentclass class environment evalsource use function definitions from a source file without findclass find class definitions findmethods description of the methods defined for a generic function fixprevious fix objects saved from r versions previous to 1 8 genericfunction class generic function objects genericfunctions tools for managing generic functions getclass get class definition getmethod get or test for the definition of a method getpackagename the name associated with a given package hasarg look for an argument in the call implicitgeneric manage implicit versions of generic functions inheritedslotnames names of slots inherited from a super class initialize methods methods to initialize new objects from a class introduction basic use of s4 methods and classes is is an object from a class issealedmethod check for a sealed method or class languageclasses classes to represent unevaluated language objects languageel elements of language objects linearmethodslist class class linearmethodslist localrefclass localized objects based on reference classes methoddefinition class classes to represent method definitions methods s4 class documentation methods defunct defunct functions in package methods methods deprecated deprecated functions in package methods methods_details general information on methods methods_for_nongenerics methods for non generic functions in other packages methods_for_s3 methods for s3 and s4 dispatch method skeleton create a skeleton file for a new method methodslist methodslist objects methodslist class class methodslist defunct representation of methods methods package formal methods and classes methodsupport additional support functions for methods methodutilities utility functions for methods and s plus compatibility methodwithnext class class methodwithnext new generate an object from a class nextmethod call an inherited method nonstructure class a non structure s4 class for basic types objectswithpackage class a vector of object names with associated package names promptclass generate a shell for documentation of a formal class promptmethods generate a shell for documentation of formal methods rclassutils utilities for managing class definitions refclass objects with fields treated by reference oop style removemethod remove a method representation construct a representation or a prototype for a class rmethodutils method utilities s3part s4 classes that contain s3 classes s4groupgeneric s4 group generic functions sclassextension class class to represent inheritance extension relations selectsuperclasses super classes of specific kinds of a class setas methods for coercing an object to a class setclass create a class definition setclassunion classes defined as the union of other classes setgeneric create a generic version of a function setgroupgeneric create a group generic version of a function setis specify a superclass explicitly setloadactions set actions for package loading setmethod create and save a method setoldclass register old style s3 classes and inheritance setsclass create a class definition show show an object showmethods show all the methods for the specified function s or class signature class class signature for method definitions slot the slots in an object from a formal class stdrefclass class envrefclass structureclasses classes corresponding to basic structures substitutedirect substitutedirect testinheritedmethods test for and report about selection of inherited methods traceclasses classes used internally to control tracing validobject test the validity of an object zbasicfunslist list of builtin and special functions what can we improve the page or its content looks wrong i can t find what i m looking for i have a suggestion other extra info optional submit improve this page r package documentation rdrr io home r language documentation run r code online browse r packages cran packages bioconductor packages r forge packages github packages we want your feedback note that we can t provide technical support on individual packages you should contact the package authors for that tweet to rdrrhq github issue tracker ian mutexlabs com personal blog embedding an r snippet on your website add the following code to your website remove this copy to clipboard for more information on customizing the embed code read embedding snippets close
|