![]() "East Asia & Pacific (all income levels)" "Sub-Saharan Africa (all income levels)" ![]() "Europe & Central Asia (all income levels)" "Latin America & Caribbean (all income levels)" "Middle East & North Africa (all income levels)" > region "Europe & Central Asia (all income levels)" Tools in R such as R Markdown facilitate this process. #R markdown chunk options codeMuch more effective is to include the actual computer code which accomplished the data work in the report, whether the report is a homework assignment or a research paper. #R markdown chunk options fullIn practice, it is typically difficult or impossible to reproduce a full data analysis based on a written explanation. In principle, this can be facilitated by explaining, in words, each step of the work with data. Thinking about data science, this means that all the steps taken when working with the data from a study should be reproducible, from the selection of variables to formal data analysis. Ideally a scientific study will be reproducible, meaning that an independent group of researchers (or the original researchers) will be able to duplicate the study. Next consider the larger scientific endeavor. If we save a script file, we have the ingredients immediately available when we return to a portion of a project. In such cases we may have forgotten how we created the graphical display that we were so proud of, and will need to again spend a few hours to recreate it. Often we work on one part of a homework assignment or project for a few hours, then move on to something else, and then return to the original part a few days, months, or sometimes even years later. In addition to making the workflow more efficient, R scripts provide another large benefit. Although this all could be accomplished by typing and re-typing commands at the R Console, it is easier and more effective to write the commands in a script file, which then can be submitted to the R console either a line at a time or all together. Furthermore, each of these representations may require several R commands to create. For example creating an effective graphical representation of data can involve trying out several different graphical representations, and then tens if not hundreds of iterations when fine-tuning the chosen representation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |