sandbox-cleaning-and-organizing-data
After you’ve collected environmental data from a sensor, monitor, or other piece of equipment, one of the next steps is to organize and “clean” it!
Cleaning includes making sure the dataset is complete and consistent. Organizing the data into a table in a meaningful way gets it ready for making charts, graphs, and other visualizations. Below are some resources on cleaning data, including making tables of tidy data.
Making tables of tidy data
Images: Illustrations from the Openscapes blog “Tidy Data for reproducibility, efficiency, and collaboration” by Julia Lowndes and Allison Horst, CC BY
An example of “tidy data” from an air quality sensor might look like this:
Each variable forms a column: sensor ID number, date, time, and the air quality measurement of particulate matter are individual variables. Each variable gets its own column in the table. The column header at the top lists the variable name and its units of measurement.
Each observation forms a row: this sensor took an air quality measurement every minute. Each measurement gets its own row in the table.
Each cell is a single measurement: each block in the table shows one piece of data---one time, one PM measurement, etc.
Cleaning data
More to come here!
Questions on organizing and cleaning data
Title | Author | Updated | Likes | Comments |
---|---|---|---|---|
What are ways to make dense CSV data more readable? | @warren | about 5 years ago | 1 | 7 |
What are best practices and tools to help clean up data sets? | @stevie | over 5 years ago | 0 | 24 |
More resources on organizing and cleaning data
- Formatting Data Tables in Spreadsheets: guidance and exercises from a workshop session on “Data Organization in Spreadsheets,” from Data Carpentry.
- Wickham, H. 2014. Tidy Data. Journal of Statistical Software, 59(10), 1–23. LINK to paper.