General Info for Homeworks

All parts of the homework have to be done with a word processor and submitted by uploading it to our shared Dropbox folder.

  • if you don’t follow the instructions given below it WILL cost you points!

  • call the file hw#.R, where # is the number of the homework. For example if this is homework 2 it should be called hw2.R (but NOT homework2.R, Hw2.R, Homework2.R, …)

  • if a homework has several programs you should have one file with all of them.

  • all parts needed to run the program should be included.

  • put it in your shared folder, not in any sub folder

  • make sure it runs on MY computer. Among other things this means it can not use any unusual R libraries or read a file from your hard drive.

  • if your routine reads in anything (Resma3.RData, a text file, anything) make sure to read it from the class web page, not from you hard drive. For example, have

load(url("http://academic.uprm.edu/wrolke/Resma3/Resma3.RData"))

and not

load("C:/myfolder/Resma3.RData"))

it is ok to have that while you are working on the assignment, but you have to change it back before you submit it.

  • unless I say differently your routines should always be able to handle a general case, not just one specific example. If the assignment includes an example, it might be a good idea if you make one up yourself and write your routine for that. Then when you think you got it apply your routine to the example from the assignment.

Example

say this is homework 0 and it reads:

Problem 1

write a routine that takes a vector and finds the sum of squares.

Problem 2

write a routine that takes two vectors and draws the scatterplot.

then your submission should be like this: hw0.R