0

There is a list x, when runn x$abc or x$a all the result are 3, I am confused about this. Anyone can help to explain? Thanks!

 x <- list(abc=3)
    x$abc
    x$a
anderwyang
  • 1,047
  • 1
  • 8
  • 1
    See https://stackoverflow.com/questions/14153904/why-does-r-use-partial-matching and https://stackoverflow.com/questions/52056962/why-doesnt-r-throw-an-error-when-i-use-only-the-initial-part-of-my-column-name – Ritchie Sacramento Feb 10 '22 at 01:34

0 Answers0