[R] get more than get

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Wed Feb 28 16:47:05 CET 2007


Ingmar Visser wrote:
> it's unclear what you want ...
> but
> get("x")^2
> does not give an error

  Neither does get("x^2") if you actually have an object called "x^2":

  > "x^2"=4.000001
  > get("x^2")
  [1] 4.000001

  but that would be a perverse thing to do.

Barry



More information about the R-help mailing list