Displaying 2 results from an estimated 2 matches for "inputdataframe".
2004 May 13
2
List of data frames...
Hi,
I would like to create a list of data frames that I could access via index
manipulation. An array pointer of dataframe...
for (i in 1:length(InputFilelist))
{
# create data.frame
temp <- read.table (file = InputFilelist[i] , header = T, skip = 4)
# append data.frame
InputDataFrame <<- list(InputDataFrame,temp)
}
Thanks in advance !
Pascal Rheaume
[[alternative HTML version deleted]]
2010 Feb 10
1
mean calculation within dataframe corrupted
...its name and stores its value on this name.
However, it does not calculate the mean of these scores (LVMean) in the same
row correctly,
as you can see in the below output which strangely also contains NAs.
What is wrong??
Thanks for any hint!!!
######
## start
groupMeanForAllItems <- function(inputDataFrame, groupVector)
{
# build up result dataframe starting with group means
result <- data.frame(unique(groupVector));
# build up result column labels starting with group name
resultNames <- "groupname";
for (itemName in names(inputDataFrame))
{
# compute mean by group
tmpGroupMean <-...