I have daily device exposure data which I would like to transform to weekly data. I know this question has been asked before but i cannot figure this out as I'm very new to R.
How can I transform this into weekly counts by county code (there are 88 total) and sum the device exposure, total devices in county, adjusted exposure and adjusted total number of devices by week?