documentation for "vector"

Douglas Bates bates@stat.wisc.edu
Fri, 20 Mar 1998 18:32:49 -0600 (CST)


The documentation for "vector" indicates that "length" will default to 0.

   Vector Types

        vector(type="logical", length=0)
        as.vector(x,mode="any")
        is.vector(x)

The function itself disagrees.
 R> vector("list")
 Error: 1 argument passed to "vector" which requires 2.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._