[R] A question about call()

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Thu Jul 24 09:07:20 CEST 2014


Please read the Posting Guide. There is a no HTML policy and a no homework policy.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On July 23, 2014 11:40:09 PM PDT, super <desolator88 at 163.com> wrote:
>The question is as below:
>Exercises
>1.The following two calls look the same, but are actually different:
>  (a <- call("mean", 1:10))
>#> mean(1:10)
>(b <- call("mean", quote(1:10)))
>#> mean(1:10)
>identical(a, b)
>#> [1] FALSE
>What��s the difference? Which one should you prefer?
>So, how i can figure out this question?  
>
>
>	[[alternative HTML version deleted]]
>
>
>
>------------------------------------------------------------------------
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list