Learn R Programming

naniar (version 1.1.0)

add_span_counter: Add a counter variable for a span of dataframe

Description

Adds a variable, span_counter to a dataframe. Used internally to facilitate counting of missing values over a given span.

Usage

add_span_counter(data, span_size)

Value

data.frame with extra variable "span_counter".

Arguments

data

data.frame

span_size

integer

Examples

Run this code
if (FALSE) {
# add_span_counter(pedestrian, span_size = 100)
}

Run the code above in your browser using DataLab