Hi, How do I read in data from a table in WordPad using the ReadBin() function in R... Keep reading about the following: x = file("LOCATION", "rb") readBin(x, integer(),n= ,size= ,endian = "little")
readBin is for reading binary data, not text. Try this instead: http://stat.ethz.ch/R-manual/R-devel/library/utils/html/read.table.html
I presume WordPad is a binary format, so so far so good, but my question is, is it really essential to read from WordPad or could you just copy and paste from WordPad into Excel and save as CSV?
There's a user friendly guide here for importing data into R (including from Excel). Doesn't help with the original question in this thread though!
Thanks for your responses guys. I'm meeting lecturer there in a while so hopefully will clarify. I have assignment due in the morning...