cbahlai / Myers_monarchs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trouble shaping survival deployment 1 data

myersan7 opened this issue · comments

Up until now I have put off doing anything with the first survival experiment data (where I only deployed eggs on plants in soy and prairie). I thought that I could quickly analyze it using the code from deployment 2, but I'm having some trouble shaping the data (deployment1_csv.csv).

The problem is that for the first part of the experiment (July 12-July 18), I recorded eggs on individual plants (i.e. how many alive out of 4). See variable "plant". But later on (July 20 and on), I recorded individuals per "patch" of all three plants (how many alive out of 12). I need to sum across plants 1,2,3 for all the count variables, but I'm having trouble doing this with ddply.