Skip to content
Prev 28106 / 398498 Next

example methods for "whatis"

Having difficulty following the examples in John Chambers paper "Classes
and Methods in the S Language", dated 9 August 2001.  See error below in
whatis (matrix (0,2,3)).  Thanks for help.
+     data.class (object))
+     paste (data.class (object), "vector of length",
+       length (object)))
Creating a new generic function for "whatis" in package
.GlobalEnv
[1] "whatis"
+     paste (data.class (as (object, "vector")), "matrix with",
+         nrow (object), "rows and", ncol (object), "columns")
[1] "whatis"
Error in paste(".", prefix, name, sep = "__") :
        evaluation is nested too deeply: infinite recursion?
_
platform i386-pc-mingw32
arch     i386
os       mingw32
system   i386, mingw32
status
major    1
minor    6.2
year     2003
month    01
day      10
language R