由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 怎样用TAPPLY运行含两个参数的FUNCTION
相关主题
Vectorization questionHow to transpose a data frame in R
问个r问题How to compute sum of revenue for each day each person in R?
问R和C的循环语句请教一个R的命令
R中By函数是什么意思R:如何从vector中挑出单一元素
R table问题弱问请教R - 关于mean
今天又“R”了 -- 感想和请教。怎样用R找出unique的record
更新一下Taste of R,再问两个R的问题。请问matlab里面有没有想R里面apply,tapply
R program help[合集] 请问如何看到R的source code?
相关话题的讨论汇总
话题: function话题: tapply话题: 参数
进入Statistics版参与讨论
1 (共1页)
d*******1
发帖数: 854
1
我只知道TAPPLY(A,B,FUNCTION(X)(XXXXXXXXXXXXXXXX)), 但是能不能用TAPPLY包裹一
个含两个参数的FUNCTION 类似 TAPPLY(XXXXXXXXXXX, FUNCTION(X,Y)(XXXXXYYYYYY))
谢了.
D******n
发帖数: 2836
2
mapply?
z****g
发帖数: 1978
3
vectorize
l*********s
发帖数: 5409
4
No and yes. apply function family only pass 1 parameter, but you can
internalize the others by yourself.

【在 d*******1 的大作中提到】
: 我只知道TAPPLY(A,B,FUNCTION(X)(XXXXXXXXXXXXXXXX)), 但是能不能用TAPPLY包裹一
: 个含两个参数的FUNCTION 类似 TAPPLY(XXXXXXXXXXX, FUNCTION(X,Y)(XXXXXYYYYYY))
: 谢了.

d*******1
发帖数: 854
5
Nius. more specifics please.

【在 l*********s 的大作中提到】
: No and yes. apply function family only pass 1 parameter, but you can
: internalize the others by yourself.

d*******1
发帖数: 854
6
for example, i need to run chi square test between two columns by all the
levels of a third column......

【在 d*******1 的大作中提到】
: Nius. more specifics please.
l*********s
发帖数: 5409
7
for data frame, you need the aggregate function.

【在 d*******1 的大作中提到】
: for example, i need to run chi square test between two columns by all the
: levels of a third column......

1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] 请问如何看到R的source code?R table问题弱问
R一问今天又“R”了 -- 感想和请教。
R问题请教。更新一下Taste of R,再问两个R的问题。
怎样用apply对多种endpoint构建linear modelR program help
Vectorization questionHow to transpose a data frame in R
问个r问题How to compute sum of revenue for each day each person in R?
问R和C的循环语句请教一个R的命令
R中By函数是什么意思R:如何从vector中挑出单一元素
相关话题的讨论汇总
话题: function话题: tapply话题: 参数