Displaying 5 results from an estimated 5 matches for "resultname".
Did you mean:
resultnames
2010 Feb 10
1
mean calculation within dataframe corrupted
...lso 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 <- calculateGroupMean(inputDataFrame[, itemName], groupVector);
result <- cbind(result, tmpGroupMean);
# generate new column name
newColumnName <- sprintf("%s_mean", itemN...
2013 Aug 27
1
Error in simulation. NAN
...*********** SALVO LE VARIABILI **********/
F77_NAME(dcopy)(&incJ, mu_acc_P, &incOne, &mu_out_P[MCMC_iter*J],
&incOne);
F77_NAME(dcopy)(&incOne, alpha_acc_P, &incOne,
&alpha_out_P[MCMC_iter], &incOne);
}
//make return object
SEXP result,resultNames;
// oggetti della lista
int nResultListObjs = 2;
PROTECT(result = allocVector(VECSXP, nResultListObjs)); nProtect++;
PROTECT(resultNames = allocVector(VECSXP, nResultListObjs));
nProtect++;
//samples
SET_VECTOR_ELT(result, 0, mu_out_r);
SET_VECTOR_ELT(resul...
2011 Dec 11
3
how to assign a value?
Hi there,
I hope to modify values in a vector or matrix in the following code:
for (i in 1:9) {
assign(paste("a.", i, sep = ""), 1:i)
get(paste("a.", i, sep = ""))[i] <- i+50
}
I get the following error message:
Error in get(paste("a.", i, sep = ""))[i] <- i + 50 :
target of assignment expands to non-language object
2007 Apr 16
1
Names in vector occurring in another vector
...mainnames<-c("CAD","AUD") and another vector say
checknames<-c("CAD.l1","AUD.l1","JPY.l1","EUR.l1","CAD.l2","AUD.l2","JPY
.l2","EUR.l2")
I want a new vector of character strings that is just
resultnames<-c("JPY.l1","EUR.l1","JPY.l2","EUR.l2")
Because any time a name occurs in checknames that has a subset that
matches with mainnames, the
name in checknames should not be in the final result !!!!!!!!!!!!!!!!!
I can't use %in% because this example does...
2013 Apr 24
2
How to make a raster image in R from my own data set
Hi R-user,
I was trying to make a raster map with WGS84 projection in R, but I could not make it. I found one data set in Google that data is almost the same format as of mine. I wanted to make a raster map of temperature with 1 degree spatial resolution for the global scale.
I could make it in GIS software but I do have many variables (to be many raster images) and ultimately I am importing them