Skip to content
Prev 60691 / 63421 Next

"with" doesn't work with names with blanks

On 01/05/2022 3:41 p.m., Spencer Graves wrote:
tst$x works because of partial name matching.  (That leniency is one of 
the reasons for advice to avoid using $ in programs.)  It would be chaos 
if with() used partial name matching.

You can use

with(txt, `x `)

to include the space in the name.

Duncan Murdoch