add_var_random_moon: Add a random moon variable to dataset

View source: R/add-var.R

add_var_random_moonR Documentation

Add a random moon variable to dataset

Description

Add a random moon variable to dataset

Usage

add_var_random_moon(data, name = "random_moon", overwrite = TRUE, seed)

Arguments

data

A dataset

name

Name of new variable (as string)

overwrite

Can new random variable overwrite an existing variable in dataset?

seed

Seed for random number generation (integer)

Value

Dataset containing new random variable

Examples

library(magrittr)
iris %>% add_var_random_moon() %>% head()

explore documentation built on Sept. 11, 2024, 7:40 p.m.