Skip to content

Add function to add random NAs #21

@sebastian-c

Description

@sebastian-c

Tyler Rinker's original function included a parameter to add NAs. I propose to add this as a separate function so that sorandf (or any other object) can be wrapped in it and have NAs added. The proposed syntax is:

soaddnas(object, columns="all", narate=0.1)

Where columns is an integer representing which columns should have NAs added and narate is a percentage of elements which should be turned into NA.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions