[R] Access function as text from package by name
Sigbert Klinke
@|gbert @end|ng |rom w|w|@hu-ber||n@de
Fri Sep 28 08:44:32 CEST 2018
Hi,
I guess I was not clear enough: the name of the function is stored as
string. Solutions which use the object directly do not help unfortunately.
Thanks Sigbert
Am 27.09.2018 um 12:30 schrieb Sigbert Klinke:
> Hi,
>
> I want to have a function, e.g. graphics::box, as text.
> Currently I'am using
>
> deparse(eval(parse(text='graphics::box')))
>
> It is important that '::' and ':::' can be used in the name.
>
> Is there a simpler way?
>
> Thanks
>
> Sigbert
>
>
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
--
https://hu.berlin/sk
https://hu.berlin/mmstat3
More information about the R-help
mailing list