1

I've seen that the tag has a do not use in its information.

In the R language the table function is fairly useful and delivers a matrix/array data-object. Is there a mechanism to support a language-specific or [r:table] tag?

10
  • You can always make a new tag r-table, just like there's dozens of tags under android-XXX. There's no automated way of doing that categorizing. Commented Dec 14, 2014 at 23:48
  • 1
    From the table tag wiki: R uses the data.table tag.
    – animuson StaffMod
    Commented Dec 14, 2014 at 23:51
  • Just to clarify, is there any dash versus colon convention in tags. In [R] the colon seems more natural since :: is the package::function mechanism and colon is used in some other argument and formula interpretations.
    – IRTFM
    Commented Dec 14, 2014 at 23:55
  • 1
    @animuson: that is entirely different. data.table is a package with the same named function as its constructor. It is NOT the same at table.
    – IRTFM
    Commented Dec 14, 2014 at 23:56
  • @BondedDust Colons are not allowed in tag names.
    – animuson StaffMod
    Commented Dec 14, 2014 at 23:56
  • If either of you want to construct an answer that combines those two concepts I accept. But I'm still interested in what the retag-request tag implies. Is the implication that I should go into all of the 400 co-tagged {r{ and {table] entries?
    – IRTFM
    Commented Dec 14, 2014 at 23:58
  • As no questions have the both the [r] and [table] tag, do you consider this to be completed? The r-table tag was not created so I assume only the retagging was done?
    – rene
    Commented Mar 18, 2018 at 13:45
  • I means someone or its machine avatar has removed the table tags that previously existed. They did not, however, replace them with [r-table] tags.
    – IRTFM
    Commented Mar 18, 2018 at 15:22
  • @animuson: you're requoting a total misunderstanding by the wiki editor, as @42- noted. In R we might mean either: a) table as in statistical tabulate/tabulation (not necessarily using base::tabulate, could equally be, summarize/ aggregate/ xtabs/ prop.table/ margin.table etc. or b) data.table package (or c) some other generic language-agnostic sense, such as Shiny/Jupyter/HTML/JSON et al. tables). I will write an answer here. For a) we probably want tabulate, for b) data.table, for c) arguably should use a generic tag (e.g. html-table) or no tag, since it will be misused
    – smci
    Commented Apr 18, 2018 at 23:54
  • @smci so, neither table nor *.table should be tags?
    – Braiam
    Commented Aug 14, 2020 at 15:41

1 Answer 1

3

It seems like the tag was deleted: https://stackoverflow.com/tags/table/

So this question no longer arises.

(And as to the original question, the concept of 'statistical table' (as a 2D matrix/array object with a well-defined set of numerical methods, e.g. pivot, aggregate, etc., as opposed to SQL or web or formatting tables) is not specific to R, it occurs in Python Pandas, Spark, and other languages/tools.)

7
  • Yes I see that all tags== [table] have been expunged. The use in R is a bit different than a statistical "table". I was thinking of it more as a verb to create a possibly multiway tabulation, i.e. a count within an array structure. I suppose a [tabulate] tag can substitute. But what happened was that the ambiguity-driven decision to burminate the tag resulted in a loss of useful tagging. I think that rather than simply deleting the tag, that it should have been migrated. At the moment that are exactly 8 [tabulate[ tags associated with [r]. Should be many more.
    – IRTFM
    Commented Aug 17, 2020 at 16:57
  • @IRFTM: I've used both R and pandas for 10 years, and I don't think your claim is correct, so can you please justify with a succinct example why an R table is yet another different type of object to (say) a Python pandas table? And no we can't create/hijack an ambiguous tag [tabulate] because presumably that term/verb exists in like 10-100 other languages/packages and means something different in each. So the short and long answer is there should not be a tag [r-table]
    – smci
    Commented Aug 17, 2020 at 20:29
  • @IRTFM: I invite you to come discuss this in the Python chat room, some other people can contribute
    – smci
    Commented Aug 17, 2020 at 20:35
  • (Didn't see the invitation until this morning) In R table is a verb that created an array (with more than 2 dimensions) or matrix-like object with class "table". .) I do think that [tabulate] could be used and my whinging was that the wholesale removal of the [table] tag in association with an [r] tag might better have been a more careful substitution with [tabulate].
    – IRTFM
    Commented Aug 18, 2020 at 16:36
  • Perhaps a pandas tables is similar, because as I understand it, pandas was modeled after R data structures, but I don't think an R table object is always like an SQL table since R-tables are generally contingency tables. (If pandas tables are always 2D then they are not isomorphic to R tables
    – IRTFM
    Commented Aug 18, 2020 at 16:38
  • @IRTFM: nobody was ever talking about SQL tables. 'The use in R is a bit different than a statistical "table".' No it's not, it's precisely that, enriched with lots of methods. Whether in R or Python pandas. Please read the Python pandas doc and compare to R before telling us it isn't...
    – smci
    Commented Aug 19, 2020 at 14:14
  • I have no desire to reserve this as an R tag. I would be happy to have a tag that was more polyglot as long as it included the multiway aggregation or counting aspects of the table, aggregate, and tapply verbs in R as well as any equivalents in any other language. I guess [tabulate] or [aggregate] would suffice. I'll mark as accepted.
    – IRTFM
    Commented Aug 19, 2020 at 18:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .