[R] Accumulating data row by row into a data frame
Thomas Hoffmann
hoffmann at ehmgs2.et.tu-dresden.de
Thu Oct 12 10:20:30 CEST 2000
After the overwhelming response to my last question (many thanks!),
I cannot resist to ask the next maybe trivial question:
All sources I have looked into tell me about building data frames
by reading from files or by putting vectors of data ("column by column")
together.
Now I would like to create an (empty) data frame with "headings" for
every column (column titles) and then put data row-by-row into this
data frame (one row for every computation I will be doing), i.e. I
want to create kind of a "table" and fill it with data:
no. time temp pressure <---the headings
1 0 100 80 <---first result
2 10 110 87 <---2nd result .....
Is a data frame the best solution for this, anyway?
=============================================================================
Thomas Hoffmann, Institut fuer Halbleiter- und Mikrosystemtechnik, TU Dresden
E-mail: hoffmann at ehmgs2.et.tu-dresden.de
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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