Helpful bits of code for working in R