Skip to content
Prev 379063 / 398502 Next

Substitution in expressions

Apologies for not being clearer. The code does what I want, but I was wondering if there is a simpler way of doing this, using substitute()/bquote() directly without the mapply().

Best,
Wolfgang

-----Original Message-----
From: peter dalgaard [mailto:pdalgd at gmail.com] 
Sent: Tuesday, 26 March, 2019 14:42
To: Viechtbauer, Wolfgang (SP)
Cc: r-help mailing list
Subject: Re: [R] Substitution in expressions

Er, I'm confused.

You post some code, the code does something. In which sense is this not what you want?

This is slightly more direct:
expression(1L^2, 2L^2, 3L^3, 4L^3, 5L^4)

but I sense that you are looking for something else?

-pd