Skip to content
Prev 60695 / 63424 Next

"with" doesn't work with names with blanks

On 01/05/2022 5:19 p.m., Spencer Graves wrote:
Printing names(tst) would make it somewhat clear.  Running str(tst) 
(which is what I'd do) would hide it:

 > tst$y <- 2
 > tst$x <- 3
 > str(tst)
'data.frame':	1 obs. of  3 variables:
  $ x : num 1
  $ y : num 2
  $ x : num 3

Duncan Murdoch