Learn R Programming

sysid (version 1.0.4)

misdata: Replace Missing Data by Interpolation

Description

Function for replacing missing values with interpolated ones. This is an extension of the na.approx function from the zoo package. The missing data is indicated using the value NA.

Usage

misdata(data)

Arguments

data
an object of class idframe

Value

data (an idframe object) with missing data replaced.

See Also

na.approx

Examples

Run this code
data(cstr_mis)
summary(cstr_mis) # finding out the number of NAs
cstr <- misdata(cstr_mis)

Run the code above in your browser using DataLab