powered by
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.
addrandomgender(all)
The data frame to add a gender column to
The input data frame with a Gender column added
# NOT RUN { data <- generaterandomsubjects() addrandomgender(data) # }
Run the code above in your browser using DataLab