This paper explores an innovative approach to teaching data wrangling skills to students through hands-on activities before transitioning to coding. Data wrangling, a critical aspect of data analysis, involves cleaning, transforming, and restructuring data. We introduce the use of a physical tool, mathlink cubes, to facilitate a tangible understanding of data sets. This approach helps students grasp the concepts of data wrangling before implementing them in coding languages such as R. We detail a classroom activity that includes hands-on tasks paralleling common data wrangling processes such as filtering, selecting, and mutating, followed by their coding equivalents using R's `dplyr` package.
翻译:本文探索了一种创新教学方法,通过动手实践活动帮助学生掌握数据整理技能,再过渡到编程实践。数据整理作为数据分析的关键环节,涉及数据清洗、转换与重构。我们引入物理教具Mathlink立方体,以具象化方式辅助理解数据集结构。该方法有助于学生在使用R等编程语言实现数据整理前,先行掌握相关概念。我们详细设计了一项课堂活动,包含与常见数据整理流程(如筛选、选择与变换)相对应的动手任务,随后通过R语言的`dplyr`包实现其编码等效操作。