Description Usage Arguments Value Author(s) Examples

View source: R/Core_Functions.R

The function that grabs the non-missing, same day-of-week values that are ahead of the missing value we are trying to impute. e.g. If it is Monday that is missing, grab Monday values of the week after, 2 weeks after, etc.

1 | ```
Get_DoW_values_future(variable_vector, index, bin_size)
``` |

`variable_vector` |
Variable, in vector format, of which we would like to impute missing values |

`index` |
Index of missing value we would like to impute |

`bin_size` |
Number of non-missing future values to grab, which will be used for imputation |

Vector of non-missing same day-of-week values, as many as the indicated bin size, ahead of the missing value to impute

Jimin Lauren Yoo

1 2 | ```
temp=c(1,2,3,4,NA,NA,5,8,9,10,11,12,13,14, 15,16,17,18,19,20,21)
Get_DoW_values_future(temp, index=20, bin_size=3)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.