Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • You get the original expression as a name due to lazy evaluation, which makes it possible for the data.frame function to capture the expression "string" prior to its evaluation. BTW, the names with check.names=TRUE come from the same strings massaged by make.names. Link: adv-r.had.co.nz/Computing-on-the-language.html Commented Sep 4, 2013 at 21:09
  • 1
    This is wrong: "using <- inside a function declares the variable globally". Commented Sep 5, 2013 at 0:41
  • @DWin telling me what is 'wrong' about it might be helpful so that I can edit the question so that it doesn't contain false information. Or, if you want to, feel free to edit the question yourself. Commented Sep 5, 2013 at 0:47
  • @Adam, <- does not declare a variable globally. For example: f <- function(x) { a <- 1; return(x) }. Try calling f() and you'll see variable a does not exist. Commented Sep 5, 2013 at 0:50
  • @Manetheran thanks for providing a bit more of an explanation. Commented Sep 5, 2013 at 0:59