imputeTSを使って補完

na_interpolation(x = dataset$variable_name, option = "linear")

 

以下のサイトの情報から自分が使うところだけ抜き出した:

参考文献:

saecanet.com