Skip to content
Back to formatted view

Raw Message

Message-ID: <CA+hbrhU7eOXvyx0daaN=4CfBcD4Xq9xV2Jn9WgHKoUO9+faZZw@mail.gmail.com>
Date: 2012-02-27T17:50:14Z
From: Peter Langfelder
Subject: problem with assign and get
In-Reply-To: <4F4BC055.90002@yahoo.de>

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