basic R functions used often