A blog on statistics and R aiming at helping academics and professionals working with data to grasp important concepts in statistics and to apply them in R. See www.statsandr.com
Rather than use long hand to create the database, it is more productive to create a file that holds the data. In that way, it is easier to edit the database without editing the codes. This will also avoid errors in coding and instead of so many lines of code, the entry becomes just two lines from 10 and would elongate if more roles are added:
Rather than use long hand to create the database, it is more productive to create a file that holds the data. In that way, it is easier to edit the database without editing the codes. This will also avoid errors in coding and instead of so many lines of code, the entry becomes just two lines from 10 and would elongate if more roles are added:
library(readxl) cv <- read_excel("filename.xlsx")