library(tcltk) methods(class = "tclArray") ## [1] [[ [[<- $ $<- length length<- names names<- ## see '?methods' for accessing help and source code
It should be something like `[<-`. But this one is not defined. Perhaps can you contribute one here? Best, Philippe Grosjean > On 10 Dec 2015, at 01:00, Cleber N.Borges <kle...@yahoo.com.br> wrote: > > hi all, > there is a vectorinzing version of "[[<-" for "tclArray" class ? > TIA > cleber > ##### > > library(tcltk); getS3method("[[<-",'tclArray') > function (x, ..., value) > { > name <- as.character(x) > i <- paste(..., sep = ",") > if (is.null(value)) > .External(.C_RTcl_RemoveArrayElem, name, i) > else { > value <- as.tclObj(value) > .External(.C_RTcl_SetArrayElem, name, i, value) > } > x > } > <bytecode: 0x000000000e7ab608> > <environment: namespace:tcltk> > > > > > --- > Este email foi escaneado pelo Avast antivĂrus. > https://www.avast.com/antivirus > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.