Yaamini’s Notebook: Remaining Analyses Part 13

Triple-nested for loops are not fun

As I mentioned in a previous post, Steven suggested I create a table with information about the peptide vs. biomarker regressions I did. I was trying to do that using a three for loops nested within eachother.

screen shot 2017-12-13 at 2 16 29 pm

It did not go well.

When I was talking with Sam today, he suggested I break the nested for loops. Instead, he thought I should save all of the regression information into a new table, and then reformat that information into the table I wanted to save. That was the right idea! The code can be found in this R Script, or below.

screen shot 2017-12-13 at 2 46 36 pm

screen shot 2017-12-13 at 2 46 51 pm

screen shot 2017-12-13 at 2 46 59 pm

The table I produced can be found here.

My next steps are to (finally) quality control my data, remake pH, DO and salinity plots, make a table of important environmental variables, and do something with the growth data. Oh, and write I guess.

…can you tell I’m a bit tired of this yet?

from yaaminiv.github.io http://ift.tt/2Aj54qd
via IFTTT