由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - R中By函数是什么意思 (转载)
相关主题
问编程题若干about MatLab programming (转载)
what is min/max VaR?有coskewness,cokurtosis的公式么?
请教 两个trading strategies的算法实现, 先谢谢了![合集] interview question 2
cross-sectional的factor和time series的factorone C++ question
算法题:show path with covering set is NP-completeCFA study notes sharing
load data to a dictionary in R[合集] a problem
the third round interview for commodities group@MS诚心请教quant和risk management有区别么?
谁有这些ninjatrader的indicator的c# code??What is the relationship between the null space of A and A'A?
相关话题的讨论汇总
话题: data话题: fun话题: 函数话题: frame话题: function
进入Quant版参与讨论
1 (共1页)
J*****n
发帖数: 4859
1
【 以下文字转载自 Statistics 讨论区 】
发信人: Jadeson (Jadeson), 信区: Statistics
标 题: R中By函数是什么意思
发信站: BBS 未名空间站 (Fri Nov 28 16:15:19 2008)
google了半天,没有结果。
谢谢。
J*****n
发帖数: 4859
2

能不能给个连接,我要看看参数的用法。谢谢。
w**********y
发帖数: 1691
3
自己在R中:
?by
不就行了。。。奇怪。。
Apply a Function to a Data Frame split by Factors
Description
Function by is an object-oriented wrapper for tapply applied to data frames.
Usage
by(data, INDICES, FUN, ...)
Arguments
data an R object, normally a data frame, possibly a matrix.
INDICES a factor or a list of factors, each of length nrow(data).
FUN a function to be applied to data frame subsets of data.
... further arguments to FUN.
Details
A data frame is split by row into data frames subsetted by the values
J*****n
发帖数: 4859
4

frames.
不会用R,不过是希望把R的语句弄清楚,最后用VBA实现。
谢谢。

【在 w**********y 的大作中提到】
: 自己在R中:
: ?by
: 不就行了。。。奇怪。。
: Apply a Function to a Data Frame split by Factors
: Description
: Function by is an object-oriented wrapper for tapply applied to data frames.
: Usage
: by(data, INDICES, FUN, ...)
: Arguments
: data an R object, normally a data frame, possibly a matrix.

c*******o
发帖数: 1722
5

~~~~~~~~~~~~~~???

【在 J*****n 的大作中提到】
:
: frames.
: 不会用R,不过是希望把R的语句弄清楚,最后用VBA实现。
: 谢谢。

1 (共1页)
进入Quant版参与讨论
相关主题
What is the relationship between the null space of A and A'A?算法题:show path with covering set is NP-complete
An interview question(math)load data to a dictionary in R
请教: c++ 重载问题the third round interview for commodities group@MS
bounded subset in a plane谁有这些ninjatrader的indicator的c# code??
问编程题若干about MatLab programming (转载)
what is min/max VaR?有coskewness,cokurtosis的公式么?
请教 两个trading strategies的算法实现, 先谢谢了![合集] interview question 2
cross-sectional的factor和time series的factorone C++ question
相关话题的讨论汇总
话题: data话题: fun话题: 函数话题: frame话题: function