gender_perrelationship: gender - extracts the gender of each node

Description Usage Arguments Value Author(s) Examples

View source: R/gender_perrelationship.R

Description

This function extracts the gender of each node for each subject. This function should be used after the relationship dataframe has been created.

Usage

1
gender_perrelationship(qualtricsoutput, relationshipdf)

Arguments

qualtricsoutput

This is the Qualtrics dataframe. Make sure to run 'clean_qualtrics' before you run this function.

relationshipdf

this is the new relationship-per-line dataframe. This dataframe is the output from the 'relationship_perline' function.

Value

This function will return the relationshipdf with the added gender information. Make sure to assign the relationshipdf to this function (see example).

Author(s)

Nicole Burke

Examples

1
relationshipdf <- gender_perrelationship(Qualtricsoupt, relationshipdf)

nicoleburke/Social-Network-Survey documentation built on Oct. 1, 2021, 4:58 a.m.