problem with "[[<-"

About this list Date view Thread view Subject view Author view Other groups

Subject: problem with "[[<-"
From: Saikat DebRoy (saikat@stat.wisc.edu)
Date: Tue 02 Nov 1999 - 08:11:09 EST


Message-ID: <qxpzowx3ls2.fsf@ludwig.stat.wisc.edu>

This works in 0.65.1 but not in 0.90.0.

> form <- ~ a | b
> form[[2]][[3]] <- as.name("u")
Error: Object "u" not found

I can get around this as follows

> form.1 <- form[[2]]
> form.1[[3]] <- as.name("u")
> form[[2]] <- form.1
> form
~a | u

--please do not edit the information below--

Version:
 platform = i686-unknown-linux
 arch = i686
 os = linux
 system = i686, linux
 status = Under development (unstable)
 major = 0
 minor = 90.0
 year = 1999
 month = October
 day = 28
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:09 EST