[R] as.environment Error

mailing-list at gmx.net mailing-list at gmx.net
Fri Apr 30 19:20:55 CEST 2010

Dear R community,

I have a problem with assign:

	      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)

The Error:
Error in as.environment(pos) : invalid argument

Has anybody an idea, how to solve this error ?

Thanks in advance,

More information about the R-help mailing list