search for: v_dmus

Displaying 1 result from an estimated 1 matches for "v_dmus".

Did you mean: v_amps
2011 Aug 09
1
assign names to vectors in loop
...to vectors in a loop. Here is a short example: DMUs <- as.data.frame(matrix(c("b","c","d","a","e","h","i","f","g","j","k","l"),ncol =7, nrow=10)) colnames(DMUs) <- v_DMUs <- c("a","b","c","d","e","f","g") for (i in v_DMUs) assign(paste("eff_val",i,sep="."),abs(rnorm(10))) Now I like to find a solution for applying following operation in a loop for all vectors eff_va...