R: Simple R script for numbers and others