R-beta: data.entry()

Bill Simpson wsimpson at uwinnipeg.ca
Tue Sep 15 20:57:44 CEST 1998


I have looked at the help page and at "Notes on R" and not found much info
on data.entry.  I wanted to use it to put my class marks into a data frame
(I don't normally use data frames but I guess this is the way to do it).

data.entry()
brings up the spreadsheet.  OK enter data, change col names, change col
data types etc. Now how do I save these data to disk as a dataframe?
Clicking Quit seems to just create these cols as independent vectors. Then
I have to manually string them all together into a dataframe using
data.frame()? Is there a better way?

One other question. At the end of term I want to print up the spreadsheet
(name, student#, test1, test2, etc). The marks will all be in a data
frame. Is it possible to get a print out like:

Name	Number	test1	test2	test3	...
-----------------------------------------------
bob	ads12	10	20	30
joe	gfd73	20	30	50 
...

(I know this is not using data.entry, but the idea of using data.entry is
to simulate a spreadsheet, and one thing you do with spreadsheets is make
print-outs like this)

Thanks for any help!  BTW I think it would be helpful to have a little
write-up in Notes on R, I would do it if you want. Many newbies would like
to use data.entry if they knew how, I think.

Bill Simpson

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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