[R] cat output To data.frame.rows ?
siim at obs.ee
Thu Jun 20 18:05:49 CEST 2002
On Thu, 20 Jun 2002, Christian Schulz wrote:
|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
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.
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