Due date: Sept 30, 5 PM.
This homework concerns functions.
- Make a function that reads in data and does some sort of
manipulation of it. Undergrads, use the surveys dataset. Graduates, use
your own data. Any manipulation is fine: selection, filtering, value
removal.
- Add a test to this function. How will you know if it worked, and
alert a user if it did not?
- Make a function that makes a plot. This can be any type of plot that
we covered. Violin, box, scatter. Include the ability to save the plot
to a file in the function.
- For saving to a file, users of your function may want the ability to
choose their file name. Make the filename an argument so that users can
do so.