problem with assign and get
On Mon, Feb 27, 2012 at 9:41 AM, Jannis <bt_jannis at yahoo.de> wrote:
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?
dimnames(test) <- list(1:10,1:10) Peter