Skip to content

R Lessons

Ben Tupper edited this page Dec 10, 2024 · 12 revisions

"According to the ancient Chinese proverb, A journey of a thousand miles must begin with a single step." ~ John F. Kennedy

Resources

RSeek R-centric search engine

Handy Tandy Tutorials Home-grown tutorials

Tidy Models The belly of the beast with great tutorials.

Tidy Modeling with R The original with really good slow-it-down-and-understand tutorials.

TidySDM Tidy modeling with spatial data (that's us!)

Geocomputation with R An excellent modern guide to working with spatial data.

Helpful paradigms to keep in mind

Data types (shapes?)

Any programming language will organize bits of data into what are loosely called "structures", and R is no exception. Structures may have all one type of data, like only numbers or only character strings, or they may allow you to gather mixed data types. Sometimes structures are carefully controlled for shapes (like a 2d matrix, or a table) and sometimes structures are very flexible about what shape they are. And most structure shapes can be changed as long as you end up with the same number of items inside that you started with before reshaping. The point is that programming languages like R probably have what you will need. The trick is to know what you need...

The relationship between R and RStudio

Modern computing is making programming (aka coding) easier to do with beautiful human-friendly interactive software wrappers. These wrappers create an application around other applications (hence wrapping!) Its important to keep in mind that inside the wrapper is a computational engine that doesn't really know about the wrapper. Think of R as an engine that can be placed into various vehicles to make them go. The lesson here is that RStudio is really terrific but it is not R itself.