[R] tclArray() --- "active"?!
Dalthorp, Daniel
ddalthorp at usgs.gov
Wed Jul 6 16:18:12 CEST 2016
Sometimes when working with tclArray's, an empty element called "active" is
appended to the array. Does anyone know when (and why) this happens? And
how to prevent it (or at least predict it so that it can be removed by
hand)?
E.g.,
library(tcltk); library(tcltk2)
tt<-tktoplevel()
dat<-tclArray()
tab<-tk2table(tt, variable = dat)
tkgrid(tab)
dat[[0,0]]<-5
dat[[1,0]]<-4
dat[[2,0]]<-56
tkdelete(tab,"rows",2, 8)
names(dat)
Any help would be greatly appreciated!
-Dan
--
Dan Dalthorp, PhD
USGS Forest and Rangeland Ecosystem Science Center
Forest Sciences Lab, Rm 189
3200 SW Jefferson Way
Corvallis, OR 97331
ph: 541-750-0953
ddalthorp at usgs.gov
[[alternative HTML version deleted]]
More information about the R-help
mailing list