diff options
author | Suraj Yerramilli | 2015-06-06 19:44:32 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2015-06-06 19:44:32 +0530 |
commit | 5096a561b6c6765a2279e023ed4aba7bd34d1152 (patch) | |
tree | 2e368927c659c5b8d8a58425fee1a03f4d5f0cfd /R | |
parent | ed80eef73351a1c4bb06664d004fddaf24328e41 (diff) | |
download | SysID-R-code-5096a561b6c6765a2279e023ed4aba7bd34d1152.tar.gz SysID-R-code-5096a561b6c6765a2279e023ed4aba7bd34d1152.tar.bz2 SysID-R-code-5096a561b6c6765a2279e023ed4aba7bd34d1152.zip |
Updating Documentation of misdata
Diffstat (limited to 'R')
-rw-r--r-- | R/preprocess.R | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/R/preprocess.R b/R/preprocess.R index d47bb54..2d6767a 100644 --- a/R/preprocess.R +++ b/R/preprocess.R @@ -108,6 +108,21 @@ detrend.predict <- function(object,data){ #' Replace Missing Data by Interpolation #' +#' Function for replacing missing values with interpolated ones. This is an +#' extension of the \code{na.approx} function from the \code{zoo} package. +#' The missing data is indicated using the value \emph{NA}. +#' +#' @param data an object of class \code{idframe} +#' @return +#' data (an idframe object) with missing data replaced. +#' +#' @seealso \code{\link[zoo]{na.approx}} +#' +#' @examples +#' data(cstr_mis) +#' summary(cstr_mis) # finding out the number of NAs +#' cstr <- misdata(cstr_mis) +#' #' @export misdata <- function(data){ require(zoo) |