USEPA / Phytoplankton-Data-Analysis

Phytoplankton Data Analysis
3 stars 0 forks source link

Where to store script that fixes "processed_data/cleaned_wq_20141121.txt" #43

Open jbeaulie opened 9 years ago

jbeaulie commented 9 years ago

Matt read in water chemistry data that we got from Jade and produced "processed_data/cleaned_wq_20141121.txt". I wrote an additional 160 lines of code to clean up this text file. The code is currently contained in "PreviewProcessedDataJake.R", but I would like to integrate it with the script Matt used to write the original .txt file. Can you help me with this?

willbarnett commented 9 years ago

Absolutely. Sorry for the delay in responding -- I was traveling a lot over the past few weeks. I'll look at this tomorrow morning and we can talk about it on Jan. 7.

jbeaulie commented 9 years ago

The relevant script begins with the code chunk titled "PREVIEW WATER CHEM DATA THAT MATT IMPORTED AND JADE/DREW PROVIDED". It continues through a few more code chunks and ends in the code chunk titled "FINALIZE, SCREEN FOR NA AND DULPLICATES, AND WRITE DATAFRAME TO .csv FILE". Currently, the code chunks encompass lines 288 - 457.

willbarnett commented 9 years ago

The code chunk inPreviewProcessedDataJake.R is implemented now in wqCheck.R, which reads an intermediate water chemistry output file and ends up writing the 'cleaned' output.

I didn't realize it until today, but the code chunk requires the file "processed_data/cleanedChemNameMethodCorrected.txt" to be read, which isn't currently in the 'processed_data' directory. I didn't notice the error before. Can you commit that file? Once that's done, the cleaned water chemistry file can be written and this issue can be closed.