Getting rid of the clutter in R