[R] there is a vectorinzing version of "[[<-" for "tclArray" class ?
phgrosjean at sciviews.org
phgrosjean at sciviews.org
Thu Dec 10 08:27:46 CET 2015
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 <klebyn at 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 at 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.
More information about the R-help
mailing list