Various R ideas and scripts