na_loess: na_loess

Description Usage Arguments Value Note Examples

View source: R/na_loess.R

Description

Replace NA with loess model

Usage

1
na_loess(object, ...)

Arguments

object

Object to have NA's replaced

...

Additional arguments passed to loess

Replaces NA with a loess smoothed fit. Cannot handle points at the begginning or end of the series.

Value

Object of the same type with NAs replaced by a loess smoothed line

Note

This does not follow function naming conventions in order to more closely resembling existing na_* functions

Examples

1
2
3
4
  
  x <- 1:101 
  x[ seq(20,80,5)] <- NA
  na_loess(x)

decisionpatterns/na.actions documentation built on Aug. 25, 2020, 8:04 p.m.