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

______________________________________________
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.

Reply via email to