Hi all, I had mentioned this as a PS in a recent prior post on r-help on the use of assign(), but presumably it got buried in the noise. There is a typo in the R-patched and R-devel versions of assign.Rd in the first example comments. It is presently: #-- Create objects 'r1', 'r2', ... 'r6' -- Note the line where paste() is used in the example is: nam <- paste("r",i, sep=".") # Note 'sep' Hence, the comment should be: #-- Create objects 'r.1', 'r.2', ... 'r.6' -- I have attached a text file containing the patch against today's r-devel tarball version of assign.Rd. HTH, Marc Schwartz -------------- next part -------------- --- assign.Rd 2006-04-09 17:19:28.000000000 -0500 +++ assign.patched.Rd 2006-04-20 13:35:15.000000000 -0500 @@ -62,7 +62,7 @@ \code{\link{environment}}. } \examples{ -for(i in 1:6) { #-- Create objects 'r1', 'r2', ... 'r6' -- +for(i in 1:6) { #-- Create objects 'r.1', 'r.2', ... 'r.6' -- nam <- paste("r",i, sep=".") assign(nam, 1:i) }
On 4/20/2006 2:47 PM, Marc Schwartz (via MN) wrote:> Hi all, > > I had mentioned this as a PS in a recent prior post on r-help on the use > of assign(), but presumably it got buried in the noise.Noise? I didn't hear anything... I'll fix this. Duncan Murdoch> > There is a typo in the R-patched and R-devel versions of assign.Rd in > the first example comments. > > It is presently: > > #-- Create objects 'r1', 'r2', ... 'r6' -- > > Note the line where paste() is used in the example is: > > nam <- paste("r",i, sep=".") # Note 'sep' > > > Hence, the comment should be: > > #-- Create objects 'r.1', 'r.2', ... 'r.6' -- > > I have attached a text file containing the patch against today's r-devel > tarball version of assign.Rd. > > HTH, > > Marc Schwartz > > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel