[R] write
Petr PIKAL
petr.pikal at precheza.cz
Tue Apr 24 15:40:13 CEST 2007
Hi
had you consider to look at help page? How do you expect your written file
to be named?
>From help page
write is a wrapper for cat, which gives further details on the format used
cat is useful for producing output in user-defined functions. It converts
its arguments to character strings, concatenates them, separating them by
the given sep= string, and then outputs them
save for writing any R objects, write.table for data frames, and scan for
reading data
^^^^^^^^^^^^^^^^^^^^^^^^^^
write.table(F, "some.file.name", sep= "\t")
can maybe do what you want.
Help provided with your installation is probably the quickiest way how to
evaluate things about commands without waiting for usually delayed and
sometimes ironical answer.
Regards
Petr
BTW, F can state for FALSE so if you stick with such names you can be
somtimes quite confused however smart is R in evaluating functions and
objects.
r-help-bounces at stat.math.ethz.ch napsal dne 24.04.2007 15:21:05:
> ok,
> I have problems with write function
>
> > F
> Id_TrT1 Id_Geno Id_Rep Val_O
> 3 0 55094 1 85
> 9 0 55096 1 87
> 15 0 55098 1 92
> 21 0 55079 1 76
> 27 0 55095 1 92
> 33 0 55099 1 98
> 39 0 55092 1 92
> 45 0 55090 1 72
> 51 0 55101 1 93
> 57 0 55106 1 90
>
> and to write F I obtain like this:
>
> > write(F, "", sep=" ")
> Erreur dans cat(list(...), file, sep, fill, labels, append) :
> argument 1 (type 'list') pas encore traité par cat
>
>
> I know that the problem it's that f is a list but when I change it in
matrix
> or something else the consol display it but badly
> I obtain just one column
>
>
>
>
___________________________________________________________________________
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list