[R] print()
Yu-Ling Wu
yuling5 at yahoo.com
Wed Feb 28 23:10:39 CET 2001
Hi, I've two questions. Please help me. Thanks!
--- Question (1) ---
When I type: print("School Name")
the output is: [1] "School Name"
How to get rid of the '[1]' and the double quotes ""
and make the output like this: School Name
--- Question (2) ---
I got the following output by typing "summary(data)".
dstuser dstmethod numaction
Min. :1.000 Min. : 1.000 Min. : 5.00
1st Qu.:2.000 1st Qu.: 2.000 1st Qu.: 7.00
Median :2.000 Median : 7.000 Median :16.00
Mean :2.667 Mean : 5.222 Mean :23.11
3rd Qu.:4.000 3rd Qu.: 7.000 3rd Qu.:24.00
Max. :4.000 Max. :10.000 Max. :66.00
How to make the output in grid and look like this:
+--------+---------+----------+-----------+
| |dstuser |dstmethod | numaction |
+--------+---------+----------+-----------|
| Min. | 1.000 | 1.000 | 5.00 |
| 1st Qu.| 2.000 | 2.000 | 7.00 |
| Median | 2.000 | 7.000 | 16.00 |
| Mean | 2.667 | 5.222 | 23.11 |
| 3rd Qu.| 4.000 | 7.000 | 24.00 |
| Max. | 4.000 | 10.000 | 66.00 |
+--------+---------+----------+-----------+
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list