Assignment for R programming