Skip to content
Prev 13495 / 398502 Next

?? hmm ??

On Mon, 10 Sep 2001 Gerard.Keogh at cso.ie wrote:

            
Actually neither x nor m gets printed from within the function, because
you didn't ask R to print either of them.

The statement
     x
means "Work out what x is". To print x you need
     print(x)
which means "Work out what x is and print the result"


The thing that is printed when you type mm(u) at the command line is not m
but mm(u). At the command line, only, a calculated value that isn't
assigned to any other variable will be printed.

So
   mm(u)
at the command line means "Work out the value of mm(u)", and since it is
at the command line and the result is not assigned to anything it is printed.


	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._