[R] problem with assign and get

Jannis bt_jannis at yahoo.de
Mon Feb 27 18:41:41 CET 2012


Dear list members,


does anyone have an idea why the following construction does not work 
but gives the following error message:

assign('test', array(1:10, dim=c(10,10)))
dimnames(get('test')) <- list(1:10,1:10)


Error in dimnames(get("test")) <- list(1:10, 1:10) :
   target of assignment expands to non-language object


What could be a way to get this to work?


thanks a lot
Jannis



More information about the R-help mailing list