AntoineSoetewey / statsandr

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
http://statsandr.com/
35 stars 15 forks source link

Data entry #1

Closed JobNmadu closed 4 years ago

JobNmadu commented 4 years ago

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")

AntoineSoetewey commented 4 years ago

Thank you very much for this suggestion, I didn't think about it but you are completely right. I edited the article with your remark.