Taptly中的t代表什么? [英] What does the t in tapply stand for?
本文介绍了Taptly中的t代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
似乎已经普遍同意,"lapply"中的l代表list,"sapply"中的s代表simple,而"rapply"中的r代表递归.但是我在"tapply"中找不到任何内容.我现在很好奇.
There seems to be general agreement that the l in "lapply" stands for list, the s in "sapply" stands for simplify and the r in "rapply" stands for recursively. But I could not find anything on the t in "tapply". I am now very curious.
推荐答案
table
的立场,因为tapply
是table
函数的通用形式.您可以通过比较以下调用来查看:
Stands for table
since tapply
is the generic form of the table
function. You can see this by comparing the following calls:
x <- sample(letters, 100, rep=T)
table(x)
tapply(x, x, length)
尽管显然tapply
可以做的不仅仅是计数.
although obviously tapply
can do more than counting.
另外,一些引用引用"table-apply":
Also, some references that refer to "table-apply":
- R and S Plus companion
- Modern Applied Biostatistical Methods
这篇关于Taptly中的t代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文