Creating_gap_univariate: Creating a gap in a univariate series

Description Usage Arguments Value Author(s) Examples

View source: R/Creating_gap_univariate.R

Description

This function creates a gap (successive missing values) within a univariate signal. The size of gap is defined as a percentage of input vector length. By default, the starting position of the gap is chosen randomly.

Usage

1
Creating_gap_univariate(X, rate, begin = NULL)

Arguments

X

input vector

rate

size of desired gap, as a percentage of input vector size

begin

the begining position of the gap (random by default)

Value

This function returns a series with a gap of defined size.

Author(s)

Thi-Thu-Hong Phan, Andre Bigand, Emilie Poisson-Caillault

Examples

1
2
3
4
data(dataFSMUMI)
X <- dataFSMUMI[1:5000, 1] #reduction for demo
rate <- 0.1
incompleted_signal <- Creating_gap_univariate(X, rate)

FSMUMI documentation built on May 2, 2019, 12:40 p.m.