Learn R Programming

rsurfer (version 0.2)

addrandomgender: Add Random Gender

Description

This function will add a random gender to every subject. It works by appending a Gender column to the input data frame 'all'. Half of the diagnosis will be Male and the other half will be Female.

Usage

addrandomgender(all)

Arguments

all

The data frame to add a gender column to

Value

The input data frame with a Gender column added

Examples

Run this code
# NOT RUN {
data <- generaterandomsubjects()
addrandomgender(data)
# }

Run the code above in your browser using DataLab