Hi everyone, I'm new to R and English is not my first language, but hopefully
this will not end up as bad as I fear.
For my PhD thesis, I have to average some data inside an excel file and I'm
trying to do things a bit faster by using R. The excel file looks something
Year | Sodium | Ammonium
2009 | value | value
2008.6 | value | value
2008.3 | value | value
2008 | value | value
2007.5 |value | value
2007 | value | value
With various concentration of different ions for each years. I now need the
average of each ions' concentration for each year (so like, averaging each
values for Sodium between 2009 and 2008, between 2008 and 2007 and so on...
it goes all the way down to 1200 so you can see why I really don't want to
do it by hand)... but now I'm completely lost.
I initially thought to create a loop, but I can't see how I could write it