Skip to content

Data Management

Paige Miller edited this page Jan 4, 2018 · 26 revisions

Types of raw data

Data can be copied from hand-written notes into Excel, data scraped from online resources, or simulation-based data. These data are considered to be 'raw data' and should be backed up and saved in their rawest form. It's tempting to overwrite with cleaner data but resist.

[Special notes on managing data scraped from internet/other sources?]

If your data do come from simulations, the files might be too large to manage this way. In this case, make sure you save the exact way that the data were generated including version number of R packages, and back up your source code on GitHub.

Managing raw data in the Drake Lab

In the Drake Lab, we don't have a uniform way of storing data [we should perhaps address this]. Summarized personal communication with Tad about management in the Hastings lab for data collected from experimental studies, "We have hard copies of data in binders. These data get entered into Excel and are saved on a shared drive that exists on a server." [Should we start something like this, does it already exist?]. Either way, you should ensure your data are backed up in more than one location (external hard-drives, cloud options?)

Incrementally improving your data

Some tips:

  • If data are originally in Excel, save data as CSV - easier to read into R, doesn't require proprietary software
  • If variables are not intuitive, figure out what they represent and change them to something you easily understand
  • If NA values are coded as something weird, take note and consider changing to NA so R understands
  • Name your data file as something people can easily understand 2016-05-alaska-b.csv and save meta-data with the same name

Notes on "Tidy Data:"

Resources:

http://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1005510#sec004

Lab Links

Clone this wiki locally