| To: | "'Martyn Colins'" <martyncollins10@yahoo.com>, <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Re: sending output to a file |
| From: | "Neil Hepburn" <nhepburn@ualberta.ca> |
| Date: | Fri, 21 Jul 2006 11:08:05 -0600 |
| In-reply-to: | <20060721151340.73316.qmail@web55709.mail.re3.yahoo.com> |
| Thread-index: | Acas5iUCSjIeuFmyQwOiNNAGHO8KcwAAbBvA |
|
use sink("path/filename") first, then run your analysis
(all output is directed to the file that you specify in the sink() command). To
return output back to the screen, use sink()
Note that the file and path name uses / slashes instead of
the conventional \ windows slashed. For example, putting the output in
C:\Mydata\testfile.txt would be
sink("C:/Mydata/testfile.txt")
-Neil
=============================================
Neil Hepburn, Economics Instructor
Department of Social Sciences, Augustana
Faculty
University of Alberta
Camrose, Alberta
Email nhepburn@ualberta.ca
From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Martyn Colins Sent: Friday, July 21, 2006 9:14 AM To: s-news@lists.biostat.wustl.edu Subject: [S] sending output to a file Dear all,
I'm new to this list and to Splus. I'm performing a cluster analysis using
kmeans. I would like to send the screen ouput from kmeans to a specific file and
append that file. I can't get "cat" or "write" commands to format the output in
the same way it is displayed on the screen. Can someone assist me with this
query. Thanks for your help in advance.
Regards,
Martyn
See the all-new, redesigned Yahoo.com. Check it out. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: lme coefficients question, Douglas Bates |
|---|---|
| Next by Date: | Re: lme coefficients question, Roberts, J. Kyle |
| Previous by Thread: | sending output to a file, Martyn Colins |
| Next by Thread: | cluster analysis, GRAHAM LEASK |
| Indexes: | [Date] [Thread] [Top] [All Lists] |