From: Ott Toomet (siim@obs.ee)
Date: Fri 21 Jun 2002 - 02:05:49 EST
Message-id: <Pine.LNX.4.44.0206201758140.11337-100000@localhost.localdomain>
On Thu, 20 Jun 2002, Christian Schulz wrote:
|Hi,
|is there a possibilty to get my function output with "cat "
|as data.frame.rows with variables ?
|
|Var1---------------- 8 15 1 3
|Var2---------------- 0.170 0.319 0.0213 0.0638
...
It is unfortunately not quite clear to me what do you want. I think if you
want to get _output from cat()_ into a data frame, the only possibility is
to save the region into a file and then read in as data frame (using
read.table(... row.names=T).
I would rather suggest to do it
a) automatically, using sink() to redirect the output to a file, and then
reading the file in again, perhaps correcting for some syntax problems as
------ signs in your example, and thereafter read it in as a data.frame.
b) without any printing at all, putting values directly into a data.frame
instead. It depends on, what you actually are doing.
You should explain better, if I was completely missing the point.
Ott
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:33 EST