[Rd] Minor typos with UseMethod docs (PR#8269)

From: <mikek_at_cires.colorado.edu>
Date: Mon 31 Oct 2005 - 21:34:07 GMT


Full_Name: Mike Kay
Version: R-patched
OS: Linux
Submission from: (NULL) (137.75.70.37)

Hi,

The following patch cleans up some grammar in the docs for UseMethod (library/base/help/UseMethod)

-mike

      R possesses a simple generic function mechanism which can be used
-     for an object-oriented style of programming.  Method despatch
+     for an object-oriented style of programming.  Method dispatch
      takes place based on the class of the first argument to the
      generic function or on the object supplied as an argument to
      'UseMethod' or 'NextMethod'.

@@ -34,12 +34,12 @@
have a class attribute, it has an implicit class. Matrices and arrays have class '"matrix"' or'"array"' followed by the class of the underlying vector. Most vectors have class the result of - 'mode(x)', expect that integer vectors have class 'c("integer", + 'mode(x)', except that integer vectors have class 'c("integer", "numeric")' and real vectors have class 'c("double", "numeric")'. When a generic function 'fun' is applied to an object with class attribute 'c("first", "second")', the system searches for a - function called 'fun.first' and, if it finds it, applied it to the + function called 'fun.first' and, if it finds it, applies it to the object. If no such function is found a function called 'fun.second' is tried. If no class name produces a suitable function, the function 'fun.default' is used, if it exists, or an ______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Nov 01 08:46:41 2005

This archive was generated by hypermail 2.1.8 : Tue 01 Nov 2005 - 01:02:01 GMT