Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8278197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:55:38+00:00 2026-06-08T08:55:38+00:00

I am trying to figure out how to analyze multiple select/multiple responses (i.e., ‘select

  • 0

I am trying to figure out how to analyze multiple select/multiple responses (i.e., ‘select all that apply’) questions in a survey I recently conducted.

SPSS has nice capabilities for analyzing online survey data and these types of questions so I am guessing that R has that and more. Dealing with these survey answers is a bit tricky in Excel. For example, show me a histogram/distribution everyone who likes strawberry and chocolate ice cream by age.

How do I structure the data set and what would be the commands to perform some basic tabulations of frequency, pareto, and logical AND OR functions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:55:40+00:00Added an answer on June 8, 2026 at 8:55 am

    I’ve not found anything that is quite as convenient as the multiple response sets in SPSS. However, you can create groups relatively easily based on common column names, and then use any of the apply() function or friends to iterate through each group. Here’s one approach using adply() from the plyr package:

    library(plyr)
    set.seed(1)
    #Fake data with three "like" questions. 0 = non selected, 1 = selected
    dat <- data.frame(resp = 1:10,
                      like1 = sample(0:1, 10, TRUE),
                      like2 = sample(0:1, 10, TRUE),
                      like3 = sample(0:1, 10, TRUE)
                      )
    
    adply(dat[grepl("like", colnames(dat))], 2, function(x)
      data.frame(Count = as.data.frame(table(x))[2,2], 
            Perc = as.data.frame(prop.table(table(x)))[2,2]))
    #-----
         X1 Count Perc
    1 like1     6  0.6
    2 like2     5  0.5
    3 like3     3  0.3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to figure out how to read in multiple variables through a file. for
Trying to figure out a way to throw out attributes in this data that
I'm trying figure out how to query Salesforce with multiple filters where either filter
Trying to figure out how to apply a common class to jQuery Hover but
I have been trying to figure out how all this validation works, but I
Trying to figure out how I can do this properly. The print_r looks like
trying to figure out why this is happening - I have an input text
Trying to figure out why my silverlight app suddenly just displays nothing (right click
Trying to figure out how to type (via events not set the value) on
Trying to figure out a regex for validating a network path ie: \\comp\xyz or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.