Return to Course Home Page
TryPy - Re-examining R exercises through Python
TryPy - R
you ready for some python?
This notebook contains a set of excercises ported over from your earlier adventures in R
during EDS 221. Throughout our short course we will revisit these activities in light of how you might tackle the same computation and analyses in python.
As you work through these, go back and look at your R
code as a jumping off point to what you will want to do in python. Now think about how you’d modify your existing R
code to take advantage of python
’s syntax and semantics. Try testing chatGPT or another LLM to see if your intuition about how to do the translation is the same as most common solutions.
Some of these exercises may be much easier to accomplish in python and some might be harder!
NOTE: You can use python notebooks to do these exercises, but you could also create them as .py
files in VSCode and run them interactively using #%%
code blocks and the eds217_2023
environment on your local machine.
Making sure that the filename is correct