[R] cat output To data.frame.rows ?
christian
ozric at web.de
Fri Jun 21 00:20:39 CEST 2002
OK , many thanks that's a solution !
regards,christian
Am 20.06.2002 18:05:49, schrieb Ott Toomet <siim at obs.ee>:
>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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list