summaryrefslogtreecommitdiff
path: root/man/misdata.Rd
blob: a6d4df80ab8da3ceb8d58fa7c0780a0ff272b1ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocess.R
\name{misdata}
\alias{misdata}
\title{Replace Missing Data by Interpolation}
\usage{
misdata(data)
}
\arguments{
\item{data}{an object of class \code{idframe}}
}
\value{
data (an idframe object) with missing data replaced.
}
\description{
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}.
}
\examples{
data(cstr_mis)
summary(cstr_mis) # finding out the number of NAs
cstr <- misdata(cstr_mis)

}
\seealso{
\code{\link[zoo]{na.approx}}
}