A task with some goals

  1. The following is a link to a file containing some comments I wrote in R code to a co-author: http://potis.org/tutorial/textbit.txt.
    Get it. There are at least three ways. As you work through this task, keep in mind that the purpose is to give you a chance to try out your tools and to get familiar with using the help files and the documentation.
  2. Use the Emacs to clean the file. There are at least three ways to get rid of the comment marks for example: replace-string, replace-regular-expression, kill-rectangle, and delete one at a time. There are even four ways to delete the pound signs. Use the help to see and the guides to see if you can find the three good ways.
  3. After cleaning the text, get it into a LaTeX document, following the LaTeX tutorial. There are at least two ways to get the text into a LaTeX document, kill and yank into a blank file ending in .tex, save to a file with some other file ending, like .txt, and then using the insert-file function, typing it by hand, and using the mouse.
  4. Next, start R. Get some data, and have a look at it in R.
    http://potis.org/tutorial/ser.rda
    This data was produced by save() in R. See the help on that topic and on download.file() to figure out how to load it. At least two ways will work. One involves using eshell to create a directory. Try both. Use ls() to see what was loaded. This data is not guaranteed to be meaningful or usable.
    Following the R tutorial, search the R help resources for methods of summarizing and inspecting data objects.
  5. If any of the methods you have learned seem appropriate to this type of data, look at the help for those methods and try them out on the data set.
  6. Look in the R help for information on functions for generating tables in LaTeX format.
  7. Look in the R help for saving plots to graphics files. The appropriate keyword is device. Try sending output to a pdf device, and a png device. Look at the png with your web browser.
  8. Figure out how to include the pdf graphic, and a table of analysis or summary into your LaTeX file.
  9. Finally, add a bibliography and a title to your paper.
See what progress you can make on this task using the tutorial, the help resources on the DVD, talking to your classmates, and maybe checking the web. We will post a worked solution to this, or an equivalent task after the weekend.
Last modified: Fri Jun 1 05:35:14 EDT 2007