Skip to content

Instantly share code, notes, and snippets.

@MartinaGiron
Created August 17, 2022 02:06
Show Gist options
  • Save MartinaGiron/ef5edc93d38a84a4a40403ac3465fb8f to your computer and use it in GitHub Desktop.
Save MartinaGiron/ef5edc93d38a84a4a40403ac3465fb8f to your computer and use it in GitHub Desktop.
#### Calculate Totals ####
# Overall Total
survey_recoded$total <- rowSums(survey_recoded) #Create column of total score per person
survey_recoded <- cbind(id = survey_data$id, survey_recoded) #Recombine data with Respondent IDs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment