add_random_na: add_random_na

View source: R/teaching_utils.R

add_random_naR Documentation

add_random_na

Description

put random NA values within a dataframe for teaching and testing purposes.

Usage

add_random_na(data, n, exclude_cols = NULL)

Arguments

data

a dataframe

n

number of NA values to insert

exclude_cols

string or vector of strings with column to exclude from NA filling

Value

a dataframe with random NA


filippogambarota/filor documentation built on July 3, 2025, 8:39 p.m.