0

When i run the below code the following error pops up

data$`EAG Soil Moisture [%] 120cm` <- diff(log(data$`EAG Soil Moisture [%] 120cm`))

>  Error:
! Assigned data `diff(log(data$\`EAG Soil Moisture [%] 120cm\`))` must be compatible with existing data.
x Existing data has 3577 rows.
x Assigned data has 3576 rows.
i Only vectors of size 1 are recycled.
Run `rlang::last_error()` to see where the error occurred.
user438383
  • 5,716
  • 8
  • 28
  • 43
  • Can you make your post [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)? – jrcalabrese Feb 23 '23 at 14:12

0 Answers0