timeseries_imput {EnvExpInd}R Documentation

Impute the missing value for the timeseries using the linear interpolation

Description

Complete the time series using the linear interpolation

Usage

timeseries_imput(data, date_var, site_var, imput_col)

Arguments

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

Value

a data.frame

Author(s)

Bing Zhang, https://github.com/Spatial-R/EnvExpInd

Examples

library(EnvExpInd)
pollutant_data_com <- timeseries_imput(data= pollutant_data,date_var = "date",
                      site_var = "site.name",imput_col = 3:8)

[Package EnvExpInd version 0.1.0 Index]