Basic operations in R