search for: s_mean

Displaying 2 results from an estimated 2 matches for "s_mean".

Did you mean: _mean
2010 Feb 10
1
mean calculation within dataframe corrupted
...oup name resultNames <- "groupname"; for (itemName in names(inputDataFrame)) { # compute mean by group tmpGroupMean <- calculateGroupMean(inputDataFrame[, itemName], groupVector); result <- cbind(result, tmpGroupMean); # generate new 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,...
2006 Jul 27
6
Any interest in "merge" and "by" implementations specifically for sorted data?
Hi Developers, I am looking for another new project to help me get more up to speed on R and to learn something outside of R internals. One recent R issue I have run into is finding a fast implementations of the equivalent to the following SAS code: /* MDPC is an integer sort key made from two integer columns */ MDPC = (MD * 100000) + PCO; /* sort the dataset by the key */ PROC SORT;