Revision: 482
http://rpy.svn.sourceforge.net/rpy/?rev=482&view=rev
Author: lgautier
Date: 2008-04-09 13:47:23 -0700 (Wed, 09 Apr 2008)
Log Message:
-----------
minor additions to the manual (environment as dict for example)
Modified Paths:
--------------
branches/rpy_nextgen/doc/rpy.texi
Modified: branches/rpy_nextgen/doc/rpy.texi
===================================================================
--- branches/rpy_nextgen/doc/rpy.texi 2008-04-07 20:34:41 UTC (rev 481)
+++ branches/rpy_nextgen/doc/rpy.texi 2008-04-09 20:47:23 UTC (rev 482)
@@ -2,7 +2,7 @@
@c %**start of header
@setfilename rpy.info
[EMAIL PROTECTED] @RPy{} Reference Manual
[EMAIL PROTECTED] @RP2{} Reference Manual
@c %**end of header
@dircategory Programming
@direntry
@@ -121,12 +121,17 @@
with @Python{} 2.4 is expected but not tested when writing
those lines.
[EMAIL PROTECTED] @asis
[EMAIL PROTECTED] Walter Moreira, and Gregory Warnes
+For the original @RPy{} and its maintainance through the years.
+I realized through my work that it was then truly uncharted territories,
+and that you got there first.
[EMAIL PROTECTED] Alexander Belopolsky.
The contributed code of Alexander Belopolsky, who contributed
-a rewrite to @RPy{} is acknowledged.
-The original work of Walter Moreira, and Gregory Warnes, is also
-acknowledged here.
+a first rewrite to @RPy{} is acknowledged. I have found great
+inspiration in reading that code.
[EMAIL PROTECTED] table
-
@node Overview, , Preface, Top
@chapter Overview
@@ -229,7 +234,7 @@
@subsection Rvector
-Outside enviromnents and functions, most of the objects
+Outside functions, and environemnts, most of the objects
an @R{} user is interacting with are vector-like.
For example, this means that any scalar is in fact a vector
of length one.
@@ -257,8 +262,16 @@
This class is using the class @code{rinterface.SexpVector}
(@xref{SexpVector}).
[EMAIL PROTECTED] Numpy
+Vectors can also be readily converted to Numpy arrays:
[EMAIL PROTECTED]
+>>> import numpy
+>>> ltr = robjects.r.letters
+>>> ltr_np = numpy.array(ltr)
[EMAIL PROTECTED] example
+
@subsection Renvironment
@R{} environments can be described to the @Python user as
@@ -270,6 +283,9 @@
>>> globalEnv = robjects.globalEnv
@end example
+An @R{} environment in @RPy2{} can be seen as a kind of @Python{}
+dictionnary.
+
Assigning a value to a symbol in an environment has been
made as simple as assign a value to a key in a @Python{}
dictionary:
@@ -298,7 +314,15 @@
This class is using the class @code{rinterface.SexpEnvironment}
(@xref{SexpEnvironment}).
+An environment is also iter-able, returning all the symbols
+(keys) it contains:
[EMAIL PROTECTED]
+>>> env = robjects.r.baseenv()
+>>> len([x for x in env])
[EMAIL PROTECTED] example
+
+
@subsection Rfunction
@example
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list