Dear R community, I have a problem with assign:
<snip> for ( iii in 1:dim(ref_df)[2] ) { ret <<- ref_df[,iii][names(single_string[ii])]*(single_count/sum(ref_df[,iii])) assign(paste("expected_sing_ref",iii,sep=""),c(get(paste("expected_single_ref",iii,sep=""))), ret) } <snap> The Error: Error in as.environment(pos) : invalid argument Has anybody an idea, how to solve this error ? Thanks in advance, Georg ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.