Message-ID: <20190329205436.675e578e@trisector>
Date: 2019-03-29T17:54:36Z
From: Ivan Krylov
Subject: converting a character string to an object name
In-Reply-To: <CA+8Xemyj_GmqMr4tuV=R1KfzZ3DCVh7WiQmNV7uRK0Jk11_xxA@mail.gmail.com>
On Fri, 29 Mar 2019 14:07:16 +0100
Assa Yeroslaviz <frymor at gmail.com> wrote:
> Is there a way to read for each sheet the name from names(wb) and
> convert it to a name for the object?
See `get` and `assign` functions for a way to use strings as object
names. Generally, it might not be a good idea to do that (what if your
spreadsheet contains a sheet named `c` or `q`, or `data.frame`?).
If you want to save yourself some typing, consider using `with` or
`within`, though they suffer from similar problems.
--
Best regards,
Ivan