timeseries_imput {EnvExpInd} | R Documentation |
Complete the time series using the linear interpolation
timeseries_imput(data, date_var, site_var, imput_col)
data |
data.frame, contains the refrence id, individual_id and exposure_date |
date_var |
character, varibale name in data, represents the monitoring date. |
site_var |
character, varibale name in data, represents the name of monitoring site. |
imput_col |
numeric,the column position of the target variables need to be imputed |
a data.frame
Bing Zhang, https://github.com/Spatial-R/EnvExpInd
library(EnvExpInd)
pollutant_data_com <- timeseries_imput(data= pollutant_data,date_var = "date",
site_var = "site.name",imput_col = 3:8)