inherit: NAs inherit the previous value

Description Usage Arguments Value Examples

View source: R/class_inheritance.R

Description

NAs inherit the previous value

Usage

1
inherit(.vec)

Arguments

.vec

a vector ordered from left to right.

Value

A vector.

Examples

1
2
3
4
int.vec <- c(20, NA, NA, NA, 10, NA, 5, NA)
inherit(.vec = int.vec)
na.vec <- c(NA, NA, NA, NA, 10, NA, 5, NA)
inherit(.vec = na.vec)

BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.