[R] Several Basic Questions

Minghua Yao myao at ou.edu
Tue May 20 15:57:11 CEST 2003

Hello, everyone,

I am having several basic questions that I haven't found the answer to from
the manuals:

1. How to remove "[1]" when a single line message is printed?
2. How to print several variables (e.g., a character string and a numeric
variable) at the same line?
3. How to have the control of the accuracy of variables? e.g., in the

> x<-1134567.1
> y<-0.19
> z<-x-y
> z
[1] 1134567

I want variable to have an accuracy of 2 digits behind the decimal point
instead of all the digits behind the point being cut off.

Thank you in advance for any help.


More information about the R-help mailing list