search for: eff_val

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

2011 Aug 09
1
assign names to vectors in loop
...","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_val.i (with i = a:g) and names in columns (columns i = a:g) of dataframe DMUs. Perhaps there is a solution without loop, too?! names(eff_val.a) <- t(...