I need to sum the results of three different parameters (1-3) into a new column called "New". The results should only be added if the SiteID is equal to 'One','Two','Three','Four','Five' & the date of sample collection is the same for each parameter. The time of collection does not matter as long as the date is the same.
I am a novice in R and tried If, While, and For loops but did not get very far...
Thank you
Below is what the results should look like: Results