[Rd] No documentation for class AsIs (PR#1582)

a296180@mica.fmr.com a296180@mica.fmr.com
Mon, 20 May 2002 23:31:43 +0200 (MET DST)


There is no documentation for class AsIs, that is ?AsIs gives you
nothing. Relatedly, there is no discussion of the use of I() to create objects
of class AsIs on the help page for I(). This means that it is hard to find
information in the help pages about the following usage.

> test <- data.frame(x = I(letters[1:3]))
> test
  x
1 a
2 b
3 c
> class(test$x)
[1] "AsIs"      "character"
> 

Apologies if this is present in some place that I could not find.

> help.search("AsIs")
Help files with alias or title matching `AsIs',
type `help(FOO, package = PKG)' to inspect entry `FOO(PKG) TITLE':

format(base)                                 Encode in a Common Format
data.frame(base)                             Data Frames
bs(splines)                                  Generate a Basis for Polynomial Splines
ns(splines)                                  Generate a Basis Matrix for Natural Cubic Splines
predict.bs(splines)                          Evaluate a Spline Basis

Other than a brief and opaque mention in ?data.frame, I couldn't find anything
applicable. If it would be helpful, I would be happy to try my hand at an
addition to the ?I page for this usage.

Regards,

Dave Kane

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._