Referring to "Getting Started with RStudio", second release.
Using R 3.0.0 and RStudio 0.97.449.
I am able to complete Chap 2 Case Study up to "Workspace Component" (pg 18). The "read.csv" command reads the file saved without header and footer into the project, but the values in column 4 have been changed (ie are different values from the values in the code editor) AND the expected "x" does not come up in the work-space so the "Workspace Component" exercise cannot be completed. Please advise.
I have forwarded your question on to our Book Tech staff, so they can help you find a solution. If you ever have any questions or issues with the content of a title, you can also contact them directly at email@example.com or call them at:
1-707-827-7019 (outside the USA)
7:30 am to 5:00 PST
Customer Service Representative
If I had to guess, the issue is the file being read in is the original rtf formatted one and not the csv file with the bit trimmed off the head and the tail. (You wouldn't be the first, in hindsight it was a poorly chosen point to illustrate, as it too easily leads to confusion.) I'm not sure how you got the data, but if you try this command:
and you see the output starting with something like:
then this is the case. You can either trim the data, or try these commands:
That will basically get you there (although, there is a final } difference).