View source: R/kalman_functions.R

cleanUp | R Documentation |

Takes an eList as the input. If there are duplicated dates in the Sample data frame, will randomly select one value for that date. If there are censored values in the data set they will be replaced by random censored values. If there are no days with duplicate samples and no censored valued then the eList returned by the function will be identical to the eList that is passed to it.

```
cleanUp(eList, seed = NA)
```

`eList` |
named list with the INFO, Daily, and Sample dataframes and surfaces matrix. |

`seed` |
integer value. Defaults to NA, which will not change the current seed. Setting the seed to any given value can be used to create repeatable output. |

This function is run before each iteration of generating a random sequence in the
`WRTDSKalman`

function

eList with duplicated dates in the Sample data frame randomly sampled and censored values are replaced by random values.

```
eList <- Choptank_eList
eList <- cleanUp(eList)
```

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.