Displaying 1 result from an estimated 1 matches for "sigf2".
Did you mean:
sig32
2007 Dec 17
3
Cannot grasp how to apply "by" here...
...ch column
of "vector".
I tried with the following code, making assumption that by splits
database into sort of smaller dataframes for each Symbol (that's the
"x"):
factor.names <- c("Factor1", "Factor2")
factor.pvalue <- c("SigF1", "SigF2")
results <- numeric()
vector <- matrix(0, ncol=(length(factor.names)*2+2), nrow=1)
colnames(vector) <- c("No.obs", factor.names, factor.pvalue)
application <- function(x){
rownames(vector) <- x$Name
for(i in 1:length(factor.names)){
if(dim(x)[1]>...