Displaying 2 results from an estimated 2 matches for "rplanning".
Did you mean:
  planning
  
2010 Feb 11
2
Unexpected output in first iteration of for-loop
Dear r-helpers,
why do I get an output in the first iteration of the for-loop
which contains the string values of the input vector,
and how can I avoid that?
Here's the output (only line 1 is wrong)
  latentVariable   Indiv Group
1      rPlanning rIterat  rTDD
2      rPlanning    0.79  0.84
3        rIterat    0.79  0.83
4           rTDD     0.9  0.96
5       rStandup    0.83  0.82
6        rRetros     0.9  0.95
7        rAccess    0.91  0.92
8       rAccTest    0.87   0.9
#####
LV <- c("rPlanning", "rIterat", "...
2010 Feb 10
1
mean calculation within dataframe corrupted
...w column name
newColumnName <- sprintf("%s_mean", itemName);
resultNames <- c(resultNames, newColumnName)
}
LVMean = mean(result, na.rm=TRUE);
result <- cbind(result, LVMean)
resultNames <- c(resultNames, "LVMean")
names(result) <- resultNames;
return(result)
}
rPlanning <- data.frame(plan1, plan2, plan3, plan4, plan5, plan6, plan7)
a <- groupMeanForAllItems(rPlanning, u_proj)
print(a)
## end
########
Output:
  groupname plan1_mean plan2_mean plan3_mean plan4_mean plan5_mean
plan6_mean plan7_mean  LVMean 1 a 4.375.000 5.625.000 5.500.000 5.250.000
6.500.00...