[R] tcltk table: get celltag value
pdalgd at gmail.com
Tue Jan 26 02:01:53 CET 2016
> On 26 Jan 2016, at 00:54 , Dalthorp, Daniel <ddalthorp at usgs.gov> wrote:
> I'm finding it very difficult to figure out how to read the value of
> "celltag" for a given cell in a tktable.
> I'm sure it's something like:
> tcl(classTable, "get", "celltag", row, column)
> but of the dozens of variations of names, options, args, and formats I've
> tried, nothing is working. Any suggestions?
Hmm, as I read the docs, tags contain cells, not the other way around. You can ask whether a tag contains a given cell by something like
.tbl tag includes mytag 12.34
and you can get a list of tag names with
.tbl tag names
and of course a combination of the two and a loop can tell you which tags a given cell is in. Somehow it seems that you are not expected to want that...
By the way, I suppose these threads should have moved to r-devel long ago.
> Much thanks.
> 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]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Office: A 4.23
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help