Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

Filter R data set by value but keep rows that come from the same record number

$
0
0

I have survey results that is organized so that each row is one survey question. That means that one person's survey response might take up 8 rows. I want to keep all of the responses for people who scored a 0 or 1 on the questions: "Provider would recommend" or "Facility would recommend". I know how to filter those scores, but not in a way that would keep all the other rows for those records. What is the best way to write this code.

data


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>