this is my file of how to do stuff in R, with selected small examples I have compiled over time, mainly from stackoverflow