Hello all,
I hope you can help.
I have a dataset which has a column for the date/day a mosquito was collected, a column filled to show the number of mosquitoes observed (always 1) and another column describing whether that mosquito subsequently laid an egg following observation in binary (0= did not lay, 1= did lay).
With the current format, there is a separate row for each individual mosquito/day but I would like to reshape this to sum the total number of mosquitoes observed and which laid eggs on each day. In the first attached image below you can see a simplified version of the data in its current format and in the second how I would like to reshape it.
Hope this makes sense.
Thank you,
Tom
I hope you can help.
I have a dataset which has a column for the date/day a mosquito was collected, a column filled to show the number of mosquitoes observed (always 1) and another column describing whether that mosquito subsequently laid an egg following observation in binary (0= did not lay, 1= did lay).
With the current format, there is a separate row for each individual mosquito/day but I would like to reshape this to sum the total number of mosquitoes observed and which laid eggs on each day. In the first attached image below you can see a simplified version of the data in its current format and in the second how I would like to reshape it.
Hope this makes sense.
Thank you,
Tom
Comment