Nutrient Load: Linearly interpolates data to conduct nutrient load calculations

dat.interp(x)

Arguments

x

numeric

Value

one of two functions used to calculate daily nutrient load from flow and water quality parameters

Examples

data=c(rep(NA,5),runif(2,2,5),NA,NA,NA,6,7,8, NA,NA)
dat.interp(data)
#>  [1] 2.716178 2.716178 2.716178 2.716178 2.716178 2.716178 4.887077 5.165308
#>  [9] 5.443538 5.721769 6.000000 7.000000 8.000000 8.000000 8.000000